use of org.camunda.bpm.container.impl.threading.ra.inflow.JobExecutionHandlerActivation in project camunda-bpm-platform by camunda.
the class JcaExecutorServiceConnector method endpointActivation.
// JobHandler activation / deactivation ///////////////////////////
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException {
if (jobHandlerActivation != null) {
throw new ResourceException("The Camunda Platform job executor can only service a single MessageEndpoint for job execution. " + "Make sure not to deploy more than one MDB implementing the '" + JobExecutionHandler.class.getName() + "' interface.");
}
JobExecutionHandlerActivation activation = new JobExecutionHandlerActivation(this, endpointFactory, (JobExecutionHandlerActivationSpec) spec);
activation.start();
jobHandlerActivation = activation;
}
Aggregations