3 Replies Latest reply on Aug 18, 2008 9:04 AM by beve

    How to setup META-INF/classloader.xml

    nzmalik

      According to this post it's possible to configure classloader isolation in an esb archive using a classloader.xml file. But, it doesn't provide info on the contents of that file.

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104101&postdays=0&postorder=asc&start=0

      All that's stated is "The syntax is exactly the same as other classloading configuration of other JBoss components." But, there are many different ways to configure classloaders as shown on this page:

      http://wiki.jboss.org/wiki/ClassLoadingConfiguration

      Can anybody provide more info on the contents of the classloader.xml file for esb classloader isolation?

      Thanks!
      Naveen

        • 1. Re: How to setup META-INF/classloader.xml
          beve

           

          Can anybody provide more info on the contents of the classloader.xml file for esb classloader isolation?

          This can be added to META-INF/deployment.xml of an esb archive.

          Regards,

          /Daniel

          • 2. Re: How to setup META-INF/classloader.xml
            nzmalik

            How is it added? What do I need to add to either a classloader.xml or deployment. file to get classloader isolation?

            • 3. Re: How to setup META-INF/classloader.xml
              beve

              The deployment.xml file should be located in META-INF directory of an .esb archive. Take a look at some of the quickstart as most of them use this file for specifying dependencies on queues.

              The scoped classloader configuration can look something like the following:

              <jbossesb-deployment>
               <loader-repository>
               com.example:archive=unique-archive-name
               </loader-repository>
              </jbossesb-deployment>
              


              Regards,

              /Daniel