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

Ales Justin do-not-reply at jboss.com
Fri Jul 30 11:34:16 EDT 2010

Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

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

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

> 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? ;-)

It should be then

  try { 
  } catch (E e) {


Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community

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

More information about the jboss-user mailing list