EJB programming & troubleshooting: load a resource using relative path
How can Load a resource (image, prop file, XML ... ) from an EJB using a path which is relative to the root of the EAR ? can I do it the same using a path which is relative to a one of the WARs in the same EAR ?
- Posted by: Yonatan Maman
- Posted on: October 21 2006 16:08 EDT
- load a resource using relative path in discussions by Debashish Ghosh on October 27 2006 16:36 EDT
ClassLoader.getResourceAsStream("/pacakge/resource.properties"); Hope this helps !