在Geronimo中读取Java EE应用程序的外部属性文件的标准/最佳实践是什么?
答案 0 :(得分:1)
这在这里解释
http://cwiki.apache.org/GMOxDOC21/locating-your-application-specific-configuration-files.html
和此处(对于IBM WASCE,与G基本相同)
http://www-01.ibm.com/support/docview.wss?rs=2359&context=SS6JMN&dc=DB560&dc=DB520&uid = swg21266061&安培; LOC = EN_US&安培; CS = UTF-8&安培;朗= EN&安培; RSS = ct2359websphere
您也可以使用SharedLib GBean实现它。
<sys:gbean name="MyProps"class="org.apache.geronimo.system.sharedlib.SharedLib">
<attribute name="classesDirs">var/MyPropsDirectory</attribute>
<!-- the directory %Geronimo_Install%/var would be my best choice to place
such files and I belive is the best practice way to do this-->
<reference name="ServerInfo">
<name>ServerInfo</name>
</reference>
</sys:gbean>
引自here