JBoss Community

Re: Dynamically modify BaseClassLoader classpath?

created by Ales Justin in JBoss Microcontainer - View the full discussion
How can I dynamically modify the BaseClassLoader classpath?  OR call an API to set the default classpath at startup?So, how can I call something or set something to make the BaseClassLoader pick up my jars...

You can add a new deployer in pre-CLASSLOADER phase, which would then dynamically add additional classpath entries to deployment unit.

* see VFSDeploymentUnit::appendClassPath / prependClassPath

 

Some more info about deployers and how MC' VDF works:

* http://java.dzone.com/articles/jboss-microcontainer-virtual-deployment-framework

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community