1 Reply Latest reply on Sep 21, 2005 7:43 AM by jwcone

    Separate Classloaders for services

    jwcone Newbie

      Can I have two separate services that use different versions of the same class files loaded at the same time?

      For example, say MyService1 uses the class file:
      org.myorg.MyClass.class

      and MyService2 uses the class file:
      org.myorg.MyClass.class

      but the two class files are different versions. How can I configure JBoss.NET to use separate classloaders for MyService1 and MyService2?

        • 1. Re: Separate Classloaders for services
          jwcone Newbie

          I think I figured this out.

          I created two separate WSR archives, one for each service. To force separate classloaders, I put each WSR into its own EAR archive, loading it as a java module (in the application.xml file), and including a jboss-app.xml file that specified the classloading option.

          Seems to have worked. Each EAR is using scoped classloading, and each WSR is part of its own EAR.