Discussions

EJB programming & troubleshooting: load a resource using relative path

  1. load a resource using relative path (1 messages)

    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 ?
  2. ClassLoader.getResourceAsStream("/pacakge/resource.properties"); Hope this helps !