protected ProcessApplicationService processApplicationService;
@PostConstruct
protected void start() {
final RuntimeContainerDelegateImpl containerDelegate = getContainerDelegate();
containerDelegate.getServiceContainer().createDeploymentOperation("deploying camunda BPM platform")
.addStep(new EjbJarParsePlatformXmlStep())
.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.");
}