Search in sources :

Example 1 with JobExecutionHandlerActivation

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;
}
Also used : ResourceException(javax.resource.ResourceException) JobExecutionHandler(org.camunda.bpm.container.impl.threading.ra.inflow.JobExecutionHandler) JobExecutionHandlerActivation(org.camunda.bpm.container.impl.threading.ra.inflow.JobExecutionHandlerActivation)

Aggregations

ResourceException (javax.resource.ResourceException)1 JobExecutionHandler (org.camunda.bpm.container.impl.threading.ra.inflow.JobExecutionHandler)1 JobExecutionHandlerActivation (org.camunda.bpm.container.impl.threading.ra.inflow.JobExecutionHandlerActivation)1