0 Replies Latest reply on Jan 24, 2015 4:37 AM by swenvogel

    Accessing WAR files from an EJB archive inside EAR (migrating to JBoss 7 from 6)

    swenvogel

      Hi,

       

      im currently migrating an existing SEAM 2 application from JBoss 6 to JBoss 7.


      I must read an HTML file packaged inside the WAR from an Service that

      is packaged inside the EJB archive.

       

      I have the following depolyment structure:

       

      + proj.ear

         - proj.war

         - proj.ejb

       

       

      In JBoss 6 it was possible with:
      InputStream htmlContent = Thread.currentThread().getContextClassLoader().getResourceAsStream("/proj.war/sample.html");

       

      Is there a way to do the same thing with JBoss 7? I have already read about the possibility to use an
      extra module. But in my opinion the proj.war is already an implicit module and i want to avoid
      splitting HTML files accross different modules.

       

      I have attached the EAR deployment descriptor.

       

      Thanks in advance