[jboss-dev-forums] [JBoss AS7 Development] - Re: Deployer chain cleanup
David Lloyd
do-not-reply at jboss.com
Mon Nov 22 18:15:44 EST 2010
David Lloyd [http://community.jboss.org/people/david.lloyd%40jboss.com] created the discussion
"Re: Deployer chain cleanup"
To view the discussion, visit: http://community.jboss.org/message/572315#572315
--------------------------------------------------------------
> Alexey Loubyansky wrote:
>
> Actually, having looked at the processor implementations, there are just a few that need to do clean up. For example, in case of managed beans it's 1 out of 12. So, apparently, it's not that common.
>
> Another thought on this subject is that if we are to add some clean-up method then perhaps it makes sense to invoke it when the unit is undeployed. I.e. go through the same deployment chain and invoke clean-up on the processors.
No, undeploy will be a different situation: the batch builders will be gone, for example, and so will much of the deploy-time metainformation. In addition, certain things like the deployment mount(s) will be associated with a service rather than the deployment unit processor context. Undeploy should consist of nothing more than iterating all services belonging to a deployment unit and setting their mode to "REMOVE", and then waiting for completion.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/572315#572315]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101122/4d0fc74c/attachment.html
More information about the jboss-dev-forums
mailing list