-
1. Re: Add an external properties file into JBoss AS classpath
peterj Mar 30, 2010 12:27 PM (in response to paulomonteiro82)Look at the properties-service.xml file in the deploy directory. The comments in that file describe how to use it.
-
2. Re: Add an external properties file into JBoss AS classpath
paulomonteiro82 Mar 30, 2010 1:01 PM (in response to peterj)Hi Peter,
Fantastic stuff!!! It worked perfectly!!
Just another thing, we have 20 ".properties" files, referencing different Locale's, and adding all the names in there is not very elegant.
We've tried to use some regex expressions, but didn't work.
Any suggestions?
Best Regards,
-
3. Re: Add an external properties file into JBoss AS classpath
peterj Mar 30, 2010 1:06 PM (in response to paulomonteiro82)So what you have are really localized resource bundles? An alternative would be to place them all in the server/xxx/conf directory - that directory is in the classpath of each app.
Other than that, you are stuck listing each one in the properties-service.xml file.
-
4. Re: Add an external properties file into JBoss AS classpath
paulomonteiro82 Mar 30, 2010 1:18 PM (in response to peterj)Hi Peter,
Thanks for the quick reply!!!
Until now we were placing them inside the conf directory.
Unfortunately for design and legacy code reasons this can't be done.
Anyway thank you very much. Problem Solved
Best Regards,
Paulo