JBoss Community

Get a file from resources with an EJB

created by ameo in EJB3 - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in EJB3 at Community