FileDocCategorySizeDatePackage
EJBStage2Deployer.javaAPI DocJBoss 4.2.12320Fri Jul 13 20:53:48 BST 2007org.jboss.ejb3.deployers

EJBStage2Deployer

public class EJBStage2Deployer extends org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer
Starts any initial EJB deployment created and initialized by the EJBRegistrationDeployer
author
Bill Burke
version
$Revision: 57082 $

Fields Summary
private static final Logger
log
Constructors Summary
public EJBStage2Deployer()


    
   
      // make sure we run at right moment (before EJB3 client deployer)
      setRelativeOrder(COMPONENT_DEPLOYER);
   
Methods Summary
public voiddeploy(org.jboss.deployers.spi.deployer.DeploymentUnit unit)

      Ejb3Deployment deployment = unit.getAttachment(Ejb3Deployment.class);
      if (deployment == null) return;
      try
      {
         log.debug("********* EJBStage2 Begin Unit: " + unit.getName() + " jar: " + unit.getDeploymentContext().getRoot().getName());
         deployment.start();
      }
      catch (Exception e)
      {
         throw new RuntimeException(e);
      }