[jboss-user] [JBoss Microcontainer] - Re: Dynamically modify BaseClassLoader classpath?

Ales Justin do-not-reply at jboss.com
Fri Feb 18 07:16:33 EST 2011

Ales Justin [http://community.jboss.org/people/alesj] created the discussion

"Re: Dynamically modify BaseClassLoader classpath?"

To view the discussion, visit: http://community.jboss.org/message/588323#588323

> 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 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110218/93798e57/attachment-0001.html 

More information about the jboss-user mailing list