开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜