The hooks work mutually exclusive. i.e. there is one hook for every type of deployment.
The hooks themselves delegate to a DeloymentAspectManager, which excecutes the
DeploymentAspects - the work of those aspects are rolled back on failure.
| // start the deployment
| for (int i = 0; i < getDeploymentAspects().size(); i++)
| {
| DeploymentAspect aspect = getDeploymentAspects().get(i);
| try
| {
| logInvocation(aspect, "Start");
| aspect.start(dep);
| }
| catch (RuntimeException rte)
| {
| while (i-- >= 0)
| {
| // destroy the deployment
| failsafeDestroy(aspect, dep);
| }
| throw rte;
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066606#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...