I have an MBean which is deployed through an EAR file and the EAR file also contains a WAR file and JAR-files in de APP-INF/lib.
The deployements works fine and the WAR file starts the Spring applicationContext. What i need is to call our ServiceLocator to get the applicationcontext. So i need to start the MBean and the Application in the samen ClassLoader or something by which i can access the ServiceLocator and get the applicationContext to access Spring beans.
How can i do this? Hope someone can help.
Some more insight from my site:
I need to access the JVM in which the webapp is deployed and in which the SpringContext is loaded.
So i hope someone has any idea how to do this.