[jboss-user] [JBossWS] - Re: reading a local properties file
oskar.carlstedt
do-not-reply at jboss.com
Sun Feb 3 16:06:04 EST 2008
Hello!
This is the way to go. Never add a properties-file in the WEB-INF folder. A better place is on the classpath, i.e. in the WEB-INF/classes directory. Then you can access this file with the following command:
| Thread.currentThread().getContextClassloader().getResourceAsStream("filename.extension");
|
Cheers
/Oskar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125895#4125895
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125895
More information about the jboss-user
mailing list