public void deploy(DeploymentInfo unit) throws DeploymentException { if (ignoreDeployment(unit)) return; if (isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.shortName); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentInfo.class, unit); } getRuntime().create(dep); unit.context.put(Deployment.class, dep); } }
public void deploy(DeploymentInfo unit) throws DeploymentException { if (ignoreDeployment(unit)) return; if (isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.shortName); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentInfo.class, unit); } getRuntime().create(dep); unit.context.put(Deployment.class, dep); } }
/** * Executes the 'create' step only. <br/> * Subclasses need to take care that the 'start' step is executed as well. */ public void deploy(DeploymentUnit unit) throws DeploymentException { if (!ignoreDeployment(unit) && isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.getName()); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentUnit.class, unit); } if(Deployment.DeploymentState.UNDEFINED == dep.getState()) { getWsfRuntime().create(dep); unit.addAttachment(Deployment.class, dep); } else { throw new IllegalArgumentException("Cannot process Deployment in state " + dep.getState() + ": " + dep); } } }
/** * Executes the 'create' step only. <br/> * Subclasses need to take care that the 'start' step is executed as well. */ public void deploy(DeploymentUnit unit) throws DeploymentException { if (!ignoreDeployment(unit) && isWebServiceDeployment(unit)) { log.debug("deploy: " + unit.getName()); Deployment dep = getDeployment(unit); if (dep == null) { dep = createDeployment(unit); dep.addAttachment(DeploymentUnit.class, unit); } if(Deployment.DeploymentState.UNDEFINED == dep.getState()) { getWsfRuntime().create(dep); unit.addAttachment(Deployment.class, dep); } else { throw new IllegalArgumentException("Cannot process Deployment in state " + dep.getState() + ": " + dep); } } }
WSFRuntime runtime = locator.locateRuntime(runtimeName); runtime.create(dep); runtime.start(dep);
WSFRuntime runtime = locator.locateRuntime(runtimeName); runtime.create(dep); runtime.start(dep);
runtime.create(dep); runtime.start(dep);
runtime.create(dep); runtime.start(dep);