This content has been marked as final.
Show 1 reply
-
1. Re: Declare global class path resource
grossetieg Mar 8, 2012 5:25 PM (in response to grossetieg)I found my answer here : https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7
Change ResourceBundle location In previous versions of AS, the JBOSS_HOME/server/<servername>/conf/ was available in the classpath. Hence the properties files in that location were available in the classpath of the application. In AS7, to get those properties available in the classpath, package them within your application. For example, if you are deploying a .war then package those properties in WAR WEB-INF/classes/ folder. If you want those properties accessible to all components in a .ear, then package them at the root of some .jar and place that jar in EAR lib/ folder.
my.properties is now package into a .jar and place in EAR/lib folder.
Guillaume.