1 Reply Latest reply on Feb 14, 2012 6:19 AM by tchize

    Isolation between .war and .rar in jboss 5.1.0

    tchize

      Hello,

       

      i have a problem with one of my webapplication. It seems that currentContextClassLoader.getRessources() exposes ressources of the .war but also ressources of various .rar. I was thinking that .rar where isolated from .war, pretty much the same way that .war are isolated from each other. This causes me troubles as i have .rar that comes along with various library and that mean now i am under influence of all those librairies.  I was thinking that .rar were only discussing with .war using common interfaces (in this case, it's a RAR providing jms queues and topics).

       

      So questions are:

       

      1) is it normal that my war see all content of all .rarss

      2) is there a way to prevent all my webapps or a specific webapp from seeing the content of a .rar?

       

       

      Thank you.

        • 1. Re: Isolation between .war and .rar in jboss 5.1.0
          tchize

          I went a bit further. I added a META-INF/jboss-classloading.xml file with this content in the .rar file

           

          <classloading xmlns="urn:jboss:classloading:1.0"

              domain="activemq.rar"

              import-all="false"

              parent-first="false">

          </classloading>

           

          Now my .war does not see my .rar anymore. My problem now is that my datasource neither. What do i need to add to my datasource file to specify which domain to use?