jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the 
discussion

"AbstractRealDeployerWithInput fails to call undeploy() on deployer, for failed 
deployments"

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

--------------------------------------------------------------
> Ales Justin wrote:
> 
> > Consider this:deploy()
> > {
> >   doMyWork();
> >  
> >   callThirdPartyCodeWhichCanEndUpThrowingThrowableOrRunTimeException();
> > }
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Surely, my deployer/visitor isn't expected to catch Throwable and cleanup 
> > whatever I did in doMyWork(), or is it?
> > 
> > 
> > 
> 
> Sure it is.
> 
> How on earth should I know what a "revert-doMyWork()" looks like? ;-)
You need not know that logic  :)  All that I expect is a undeploy() call on my 
visitor which failed during deploy. And my visitor's undeploy() will have the 
knowledge of revert-doMyWork();

--------------------------------------------------------------

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

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to