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:
and MyService2 uses the class file:
but the two class files are different versions. How can I configure JBoss.NET to use separate classloaders for MyService1 and MyService2?
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.