[jboss-user] [JBoss Microcontainer] - AbstractRealDeployerWithInput fails to call undeploy() on deployer, for failed deployments

jaikiran pai do-not-reply at jboss.com
Fri Jul 30 11:30:19 EDT 2010


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/555212#555212

--------------------------------------------------------------
> Ales Justin wrote:
> It means that the "deployment" wasn't successfully deployed.
Yes, it wasn't successfully deployed and hence I would expect immediate undeploy()  :) 

> Ales Justin wrote:
> 
> 
> I would say it's the visitors fault that the current deployment doesn't get properly cleaned up after error.
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?

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

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100730/6c5f5ca8/attachment.html 


More information about the jboss-user mailing list