This content has been marked as final.
Show 1 reply
-
1. Re: Where's the best place to put a resource in an EAR on JBoss AS 7?
sfcoy Apr 21, 2012 5:55 AM (in response to sboscarine)Jar your config file up and place it in the app.ear/lib directory.
Make sure you update to the JEE6 EAR file schema.
app.ear
- META-INF
-- application.xml
- lib
-- config.jar
-- other.jar
-- ...
- web-module.war,
- ejb-module.jar
- etc
Technically, there is no location in an EAR file that is accessible through a classloader. It seems that earlier versions of JBoss allowed this, but it was not spec-compliant behaviour and therefore not portable.