Search in sources :

Example 1 with StartJobExecutorStep

use of org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep in project camunda-bpm-platform by camunda.

the class TomcatBpmPlatformBootstrap method deployBpmPlatform.

protected void deployBpmPlatform(LifecycleEvent event) {
    final StandardServer server = (StandardServer) event.getSource();
    containerDelegate.getServiceContainer().createDeploymentOperation("deploy BPM platform").addAttachment(TomcatAttachments.SERVER, server).addStep(new TomcatParseBpmPlatformXmlStep()).addStep(new DiscoverBpmPlatformPluginsStep()).addStep(new StartManagedThreadPoolStep()).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute();
    LOG.camundaBpmPlatformSuccessfullyStarted(server.getServerInfo());
}
Also used : StartJobExecutorStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep) DiscoverBpmPlatformPluginsStep(org.camunda.bpm.container.impl.deployment.DiscoverBpmPlatformPluginsStep) StandardServer(org.apache.catalina.core.StandardServer) PlatformXmlStartProcessEnginesStep(org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep) StartManagedThreadPoolStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StartManagedThreadPoolStep) TomcatParseBpmPlatformXmlStep(org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep)

Example 2 with StartJobExecutorStep

use of org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep in project camunda-bpm-platform by camunda.

the class EjbBpmPlatformBootstrap method start.

@PostConstruct
protected void start() {
    final RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate();
    containerDelegate.getServiceContainer().createDeploymentOperation("deploying camunda BPM platform").addStep(new EjbJarParsePlatformXmlStep()).addStep(new DiscoverBpmPlatformPluginsStep()).addStep(new StartJcaExecutorServiceStep(executorServiceBean)).addStep(new StartJobExecutorStep()).addStep(new PlatformXmlStartProcessEnginesStep()).execute();
    processEngineService = containerDelegate.getProcessEngineService();
    processApplicationService = containerDelegate.getProcessApplicationService();
    LOGGER.log(Level.INFO, "camunda BPM platform started successfully.");
}
Also used : StartJobExecutorStep(org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep) DiscoverBpmPlatformPluginsStep(org.camunda.bpm.container.impl.deployment.DiscoverBpmPlatformPluginsStep) PlatformXmlStartProcessEnginesStep(org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep) StartJcaExecutorServiceStep(org.camunda.bpm.container.impl.ejb.deployment.StartJcaExecutorServiceStep) RuntimeContainerDelegateImpl(org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl) EjbJarParsePlatformXmlStep(org.camunda.bpm.container.impl.ejb.deployment.EjbJarParsePlatformXmlStep) PostConstruct(javax.annotation.PostConstruct)

Aggregations

DiscoverBpmPlatformPluginsStep (org.camunda.bpm.container.impl.deployment.DiscoverBpmPlatformPluginsStep)2 PlatformXmlStartProcessEnginesStep (org.camunda.bpm.container.impl.deployment.PlatformXmlStartProcessEnginesStep)2 StartJobExecutorStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StartJobExecutorStep)2 PostConstruct (javax.annotation.PostConstruct)1 StandardServer (org.apache.catalina.core.StandardServer)1 RuntimeContainerDelegateImpl (org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl)1 StartManagedThreadPoolStep (org.camunda.bpm.container.impl.deployment.jobexecutor.StartManagedThreadPoolStep)1 EjbJarParsePlatformXmlStep (org.camunda.bpm.container.impl.ejb.deployment.EjbJarParsePlatformXmlStep)1 StartJcaExecutorServiceStep (org.camunda.bpm.container.impl.ejb.deployment.StartJcaExecutorServiceStep)1 TomcatParseBpmPlatformXmlStep (org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep)1