开发者

Loading property files in weblogic 10.3

开发者 https://www.devze.com 2023-03-28 21:05 出处:网络
I have an application which acesses a lot of property files. In jboss 5.1 we can load this from the conf directory.I would like to know if there is any such way of loading the property files in weblog

I have an application which acesses a lot of property files. In jboss 5.1 we can load this from the conf directory. I would like to know if there is any such way of loading the property files in weblogic 10.3 .

I don't want to include it in an jar and place in the lib,since these property files are configurable files. The user needs to configure certain properties of the application.

Also placi开发者_运维百科ng the property files in the domain directory is not very good and I also would like to know if there is any other way of achieving the same .

Regards Raj


You can place the properties files needed by your application(s) to the classpath of Weblogic and then remove the files from your WAR/JAR/EAR.

If you choose a specific folder that is not yet in your classpath, just log on the Weblogic console, and navigate through Environment -> Servers -> [Your server name] -> Configuration -> Server Start
Now it is just about adding the folder containing your properties file(s) to the classpath.

0

精彩评论

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