0 Replies Latest reply on Nov 19, 2012 6:24 AM by ameo

    Get a file from resources with an EJB

    ameo

      Hello,

       

      i have the following package structure within my EAR-File:

       

      EAR

      • ejb.jar
      • jsf.war
        • css
        • jsf
        • WEB-INF
        • resources
      • lib

       

      Now I want to access a file that is in the resources folder with an EJB.

      The EJB is in the ejb.jar.

       

      I tried the following...but what is the path to the resource folder ? AND where - in which folder - i have to put the resources?

       

      Thread.currentThread().getContextClassLoader().getResourceAsStream("...");

       

      Thanks for your help,

      ameo