2 Replies Latest reply on Aug 18, 2011 7:24 AM by porobd

    Access to libraries shared across multiple applications (ex :server/lib in jboss 4.2.3)

    porobd

      The 4.2.3 functionality regarding sharing libraries across applications i.e copying jars in server/lib directory used to make them available for all deployments, so same thing if we want to achieve in this AS 7.0.1 currently how do we achieve this?

      I found resources tag inside jboss-deployment-structure.xml useful i tried it out on the ear level did not work throws ClassNotFoundExceptions,

       

      The following is a snapshot:

       

       

      <jboss-deployment-structure>

      <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

        <deployment>

         

             <resources>

                  <resource-root path="my_client.jar"/>

                  <resource-root path="log4j-1.2.15.jar"/>

             </resources>

          

        </deployment>

      </jboss-deployment-structure>

       

      Can you suggest where should the jars mentioned in the resource-root path element be placed.?

      Or declaring modules in the JBOSS_HOME/modules directory the only way for acheiving common libraries across multiple applications?