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
Nested ClassesModifier and TypeClassDescriptionclassThis class must be free of engine classes to make it possible to install the resource adapter without shared libraries. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Booleanprotected JobExecutionHandlerActivationstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) voidendpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec) booleangetXAResources(javax.resource.spi.ActivationSpec[] specs) inthashCode()voidsetCommonJWorkManagerName(String commonJWorkManagerName) voidsetIsUseCommonJWorkManager(Boolean isUseCommonJWorkManager) voidstart(javax.resource.spi.BootstrapContext ctx) voidstop()
-
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:
startin interfacejavax.resource.spi.ResourceAdapter- Throws:
javax.resource.spi.ResourceAdapterInternalException
-
stop
public void stop()- Specified by:
stopin 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:
endpointActivationin 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:
endpointDeactivationin interfacejavax.resource.spi.ResourceAdapter
-
getXAResources
public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs) throws javax.resource.ResourceException - Specified by:
getXAResourcesin interfacejavax.resource.spi.ResourceAdapter- Throws:
javax.resource.ResourceException
-
getExecutorServiceWrapper
-
getJobHandlerActivation
-
getIsUseCommonJWorkManager
-
setIsUseCommonJWorkManager
-
getCommonJWorkManagerName
-
setCommonJWorkManagerName
-
hashCode
public int hashCode() -
equals
-