taking ha-jdbc config file out of the war
i have a config file for ha-jdbc. i would like that the users change it according to their wish so it should be outside the .war file. so far i was not successful in doing it. any knowledgable guy out there t开发者_开发技巧o help me?
thanks in advance..
I don't know what config file is for, but you can keep out in home directory of user or say ${user.home}/yourApp/yourConfig.conf
and make your app to read it from here.
You can Obtain platform independent user home hdme dir by
System.getProperty("user.home");
精彩评论