[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:57:39 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/555219#555219
--------------------------------------------------------------
> Ales Justin wrote:But you can simply "fix" this generic behavior by impling this logic into your custom visitor.
That would effectively mean, that *every* implementation of the org.jboss.deployers.spi.deployer.helpers.DeploymentVisitor interface, has to have the following code in their deploy:
deploy(DeploymentUnit unit, T deployment) throws DeploymentException;
{
try
{
...
}
catch (Throwable t)
{
this.undeploy(unit, deployment);
...
}
}
undeploy(DeploymentUnit unit, T deployment)
{
...
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/555219#555219]
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/2f6e7ca6/attachment-0001.html
More information about the jboss-user
mailing list