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&...]