Doesn't work for me.
Here is my configuration :
MyApp.ear
static.war
MyWeb.war
MyEJB.jar
The properties file is in the static.war archive.
The path is : /dir1/dir2/MyFile.properties
The class needing this properties file is located in the MyEJB.jar archive.
I tried :
InputStream is = Thread.currentThread()
.getContextClassLoader()
.getResourceAsStream(f);
with :
f="/static/dir1/dir2/MyFile.properties"
f="MyFile.properties"
f="/dir1/dir2/MyFile.properties"
The "is" input stream is always null.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858034#3858034
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858034
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user