[jboss-dev-forums] [JBoss AS7 Development] - Re: Deployer chain cleanup

Brian Stansberry do-not-reply at jboss.com
Wed Nov 10 18:37:37 EST 2010


Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] created the discussion

"Re: Deployer chain cleanup"

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

--------------------------------------------------------------
I like the approach of each DUP being responsible for cleaning itself up if it fails, with the cleanup call being reserved for those that had previously completed successfully. That's the way the handling of lists of model/runtime updates work.

Putting the logic to do the cleanup work inside DeploymentChain.processDeployment() seems easiest -- no need to do any kind of external bookkeeping of what DUPs have been invoked and need cleanup. The contract for that method can guarantee that all cleanup will be done before any exception is thrown.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/570632#570632]

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/20101110/f0e75407/attachment.html 


More information about the jboss-dev-forums mailing list