Class JcaExecutorServiceConnector
java.lang.Object
org.camunda.bpm.container.impl.threading.ra.JcaExecutorServiceConnector
- All Implemented Interfaces:
Serializable
,javax.resource.spi.ResourceAdapter
@Connector(reauthenticationSupport=false,
transactionSupport=NoTransaction)
public class JcaExecutorServiceConnector
extends Object
implements javax.resource.spi.ResourceAdapter, Serializable
The ResourceAdapter
responsible for bootstrapping the JcaExecutorService
- Author:
- Daniel Meyer
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
This class must be free of engine classes to make it possible to install the resource adapter without shared libraries. -
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Boolean
protected JobExecutionHandlerActivation
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endpointActivation
(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) void
endpointDeactivation
(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) boolean
getXAResources
(javax.resource.spi.ActivationSpec[] specs) int
hashCode()
void
setCommonJWorkManagerName
(String commonJWorkManagerName) void
setIsUseCommonJWorkManager
(Boolean isUseCommonJWorkManager) void
start
(javax.resource.spi.BootstrapContext ctx) void
stop()
-
Field Details
-
ORG_CAMUNDA_BPM_ENGINE_PROCESS_ENGINE
- See Also:
-
executorServiceWrapper
-
jobHandlerActivation
-
isUseCommonJWorkManager
@ConfigProperty(type=java.lang.Boolean.class, defaultValue="false", description="If set to \'true\', the CommonJ WorkManager is used instead of the Jca Work Manager.Can only be used on platforms where a CommonJ Workmanager is available (such as IBM & Oracle)") protected Boolean isUseCommonJWorkManager -
commonJWorkManagerName
@ConfigProperty(type=java.lang.String.class, defaultValue="wm/camunda-bpm-workmanager", description="Allows specifying the name of a CommonJ Workmanager.") protected String commonJWorkManagerName
-
-
Constructor Details
-
JcaExecutorServiceConnector
public JcaExecutorServiceConnector()
-
-
Method Details
-
start
public void start(javax.resource.spi.BootstrapContext ctx) throws javax.resource.spi.ResourceAdapterInternalException - Specified by:
start
in interfacejavax.resource.spi.ResourceAdapter
- Throws:
javax.resource.spi.ResourceAdapterInternalException
-
stop
public void stop()- Specified by:
stop
in interfacejavax.resource.spi.ResourceAdapter
-
endpointActivation
public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) throws javax.resource.ResourceException - Specified by:
endpointActivation
in interfacejavax.resource.spi.ResourceAdapter
- Throws:
javax.resource.ResourceException
-
endpointDeactivation
public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) - Specified by:
endpointDeactivation
in interfacejavax.resource.spi.ResourceAdapter
-
getXAResources
public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs) throws javax.resource.ResourceException - Specified by:
getXAResources
in interfacejavax.resource.spi.ResourceAdapter
- Throws:
javax.resource.ResourceException
-
getExecutorServiceWrapper
-
getJobHandlerActivation
-
getIsUseCommonJWorkManager
-
setIsUseCommonJWorkManager
-
getCommonJWorkManagerName
-
setCommonJWorkManagerName
-
hashCode
public int hashCode() -
equals
-