[jboss-dev-forums] [Design of JBoss Web Services] - Re: Usage of the new jboss50 new deployer architecture

thomas.diesler@jboss.com do-not-reply at jboss.com
Mon Jul 23 07:15:36 EDT 2007


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#4066606

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066606



More information about the jboss-dev-forums mailing list