4 Replies Latest reply on Jan 12, 2012 8:31 AM by pushpak1981

    Jboss war isolation

    pushpak1981 Novice

      I am having an war file deployed in Jboss7.1. I wanted to access the classes from that war into some other war during runtime. Is this possible ? In Jboss5.1 we were able to access all the classes from any  application in other application.

       

      For ear you can set the isolation flag to false. can anything same can be done for war? or i have to create modules in Jboss and sepcify the module.xml and then import the modules ?

        • 1. Re: Jboss war isolation
          jaikiran pai Master

          .war classes cannot be accessed from other .war classes in AS7. If there are such shared classes between them, then package those classes in a .jar and place that .jar in the .ear/lib folder.

          • 2. Re: Jboss war isolation
            pushpak1981 Novice

            Thanks for the reply. We are facing this issue in case of libraries that are present in One war. Those libraries are also required in second war. We have setup jBPM5.2 on Jboss7.1 which contains 4 different wars in deployment folder. We are trying to execute jBPM processes through Arquillian. Now Arquillian deploys its tests as .war which cannot access jars from jBPM war which are present in deployment folder.

             

            One way we found is to package all the jars related to jBPM into Arquillian tests. But there are lot of other jar dependencies. Is there any other war we can achieve this ?

            • 3. Re: Jboss war isolation
              jaikiran pai Master

              I'll move this to the Arquillian forum

              • 4. Re: Jboss war isolation
                pushpak1981 Novice

                .war classes cannot be accessed from other .war classes in AS7. If there are such shared classes between them, then package those classes in a .jar and place that .jar in the .ear/lib folder.

                We are having this problem when there are 2 different wars present in standalone/deployment folder share the same jar files which are present in the war/lib. As i mentioned we can create a modules and put all the common jars in the modules but we need to provide other dependencies as well.

                 

                can we use export from our jboss-deployment-structure.xml in one war so that that module will be visible in other war ?