1 Reply Latest reply on Jul 23, 2008 12:00 PM by Adrian Brock

    Isolated classloader

    Kabir Khan Master

      How do I set up an isolated classloader for a deployment using -beans.xml?

        • 1. Re: Isolated classloader
          Adrian Brock Master

          For a real deployment you use META-INF/jboss-classloading.xml

          For a standalone -beans.xml that is deployed by referencing its url

          <deployment xmlns="urn:jboss:bean-deployer:2.0">
          
           <!-- beans in this file are loaded with this classloader -->
          
           <classloader><inject bean="whatever:0.0.0"/></classloader>
          
           <!-- Construct a scoped/isolated classloader from some/url -->
           <classloader xmlns="urn:jboss:classloader:1.0"
           name="whatever"
           version="0.0.0"
           domain="IsolatedTest"
           parent-first="false">
           <root>some/url</root>
           </classloader>
          
          </deployment>