[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Access Resources from webapp directory

PeterJ do-not-reply at jboss.com
Fri Aug 15 15:39:25 EDT 2008


Your best bet is to place the files you need to read into WEB-INF/classes and then access them using the class loader.  For example:

URL = myfileUrl = Thread.currentThread().getContextClassLoader().getResource("my.file");

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170852#4170852

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170852



More information about the jboss-user mailing list