[jboss-user] [Beginners Corner] - Re: Access jar file contents from within Bean?

PeterJ do-not-reply at jboss.com
Sun Nov 19 22:29:16 EST 2006


Within a class, you could use:

InputStream is = this.class().getResourceAsStream("some.ico");

The file some.ico would have to be in the same directory as the class file.

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

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



More information about the jboss-user mailing list