JBoss - can a different class loading system be loaded in the same application?
I have looked through this article which talks about loading the JBoss class, but still got a script that I would like to test:
in case I have a utility class that is located both in the application archive (myApp / WEB-INF / lib) and server / default / lib, but with a different version in each of the archives.
Now I would like the classes from my app from the com.x package to use the application archive utility class, and the classes from the com.y package to use the / server / default / lib version of the class.
Is it possible?
Is it possible to isolate different packages within the same application and give them a different class loading order?
a source to share
It seems to me that you want to use a different mechanism than class loading to solve this problem. Have you considered using AOP for this?
Although if you want to do something that you described, then you probably should include different loader classes for the classes in packages x and y, so you can control which classes they use.
a source to share