[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Deployers, Classloaders, and Reflection in JBoss 5
bryan.kearney
do-not-reply at jboss.com
Thu Jun 4 09:49:56 EDT 2009
"adrian at jboss.org" wrote : Help requests should really go in the user's forum:
| http://www.jboss.org/index.html?module=bb&op=viewforum&f=228
|
Sorry.. dont know how I got here. I will repost in the other.
"adrian at jboss.org" wrote :
| You should make sure you unhook anything that references the old
| classes or classloader in undeploy() so they can be garbage collected,
| otherwise you'll leak classes and memory (which sounds like your real problem).
|
At redeploy, we create a new engine for application. I will double check the undeploy logic however.
"adrian at jboss.org" wrote :
| AFAIK, there's no deployer that uses the classloader directly. But we do have
| deployers that pass the classloader into the component frameworks via their metadata,
| which uses DeploymentUnit.getClassLoader().
| e.g. http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/deployer/kernel/BeanMetaDataDeployer.java?revision=88706&view=markup
|
| The closest we've got to what you are doing, uses our AnnotationScanning framework
| to create metadata objects from annotated classes,
| http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/deployer/kernel/BeanScanningDeployer.java?view=markup
| they don't deal with the classloader explicitly.
I will check these.. thank you.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235378#4235378
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235378
More information about the jboss-dev-forums
mailing list