@Tracked(value=TRACE) public class JmsAdapter extends ObjectAdapterActivity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CORRELATION_ID |
static java.lang.String |
REQUEST_QUEUE_NAME |
static java.lang.String |
RESPONSE_QUEUE_NAME |
static java.lang.String |
SERVER_URL |
static java.lang.String |
SYNCHRONOUS_RESPONSE |
static java.lang.String |
TIMEOUT |
DO_LOGGING, REQUEST_VARIABLE, RESPONSE_VARIABLE| Constructor and Description |
|---|
JmsAdapter()
Default constructor with params
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeConnection(java.lang.Object connection)
The method overrides the one in the super class to perform
JMS specific functions.
|
protected java.lang.String |
getCorrelationId() |
protected java.lang.String |
getQueueName()
The method is used by
openConnection() to obtain the queue name. |
protected java.lang.Object |
getRequestData()
The method overrides the one from the super class and perform the followings:
It gets the value of the variable with the name specified in the attribute
REQUEST_VARIABLE.
|
protected int |
getTimeoutForResponse()
Timeout value for waiting for responses.
|
java.lang.Object |
invoke(java.lang.Object conn,
java.lang.Object requestData)
The method overrides the one in the super class to perform
JMS specific functions.
|
boolean |
isSynchronous()
The synchronous JMS adapter is not yet implemented, so the method always
returns false.
|
protected java.lang.Object |
openConnection()
The method overrides the one in the super class to perform
JMS specific functions.
|
directInvoke, doLogging, execute, executePostScript, executePreScript, externalRequestToString, externalResponseFromString, externalResponseToString, getAdapterInvocationErrorMessage, getPostScript, getPostScriptBindings, getPreScript, getPreScriptBindings, getResponse, getStubbedResponse, getStubRequest, getStubResponse, handleAdapterFailure, handleAdapterInvocationError, handleAdapterSuccess, isStubMode, logRequest, logRequest, logResponse, logResponseexecutecloseDatabaseAccess, createDocument, createDocument, createDocument, createDocument, doCompatibilityCodeSubstitutions, evaluateExpression, executeScript, getActivityId, getActivityInstance, getActivityInstanceId, getActivityName, getAsset, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValueAsVariableName, getAttributeValueSmart, getDocument, getDocumentContent, getDocumentForUpdate, getEngine, getEntryCode, getExternalEventInstanceDetails, getMainProcessDefinition, getMasterRequestId, getOutputDocuments, getPackage, getParameterId, getParameters, getParameterStringValue, getParameterType, getParameterValue, getParameterValue, getParentProcessId, getPerformanceLevel, getProcessDefinition, getProcessId, getProcessInstance, getProcessInstanceId, getProcessInstanceOwner, getProcessInstanceOwnerId, getProperty, getRequiredAttribute, getRequiredVariableValue, getReturnCode, getReturnMessage, getRuntimeContext, getScriptEvaluator, getScriptExecClassName, getScriptExecutor, getValue, getValueSmart, getVariableInstance, getVariableValue, getVariableValueSmart, getWorkTransitionInstanceId, initialize, isDisabled, isLogDebugEnabled, isLogInfoEnabled, isOutputDocument, lockActivityInstance, lockProcessInstance, logdebug, logexception, loginfo, logsevere, logtag, logwarn, openDatabaseAccess, prepare, setOutputDocuments, setParameterValue, setParameterValue, setParameterValueAsDocument, setParameterValues, setProcessInstanceCompletionCode, setReturnCode, setReturnMessage, setValue, setVariableValue, setVariableValue, startTransaction, stopTransaction, translatePlaceHolder, updateDocumentContent, updateDocumentInfo, updateDocumentInfo, valueIsJavaExpression, valueIsVariablepublic static final java.lang.String SERVER_URL
public static final java.lang.String REQUEST_QUEUE_NAME
public static final java.lang.String RESPONSE_QUEUE_NAME
public static final java.lang.String CORRELATION_ID
public static final java.lang.String SYNCHRONOUS_RESPONSE
public static final java.lang.String TIMEOUT
public boolean isSynchronous()
isSynchronous in interface com.centurylink.mdw.activity.types.AdapterActivityisSynchronous in class ObjectAdapterActivityprotected java.lang.String getQueueName()
throws com.centurylink.mdw.config.PropertyException
openConnection() to obtain the queue name.
The default implementation returns the value of the attribute "Queue Name",
using getAttributeValueSmart, so that a variable or property specification
is allowed in addition to plain queue name.
You can override the method to obtain a queue name in a different way.com.centurylink.mdw.config.PropertyExceptionpublic java.lang.Object invoke(java.lang.Object conn,
java.lang.Object requestData)
throws com.centurylink.mdw.connector.adapter.AdapterException,
com.centurylink.mdw.connector.adapter.ConnectionException
invoke in class ObjectAdapterActivitycom.centurylink.mdw.connector.adapter.AdapterException - Adapter exception may or
may not be retriable, which you can set in the
exception itself. Default is not retriable.com.centurylink.mdw.connector.adapter.ConnectionException - certain protocol may also
throw ConnectionException here. ConnectionException
can be retried.protected java.lang.String getCorrelationId()
throws com.centurylink.mdw.config.PropertyException
com.centurylink.mdw.config.PropertyExceptionprotected int getTimeoutForResponse()
protected void closeConnection(java.lang.Object connection)
closeConnection in class ObjectAdapterActivityprotected java.lang.Object openConnection()
throws com.centurylink.mdw.connector.adapter.ConnectionException
openConnection in class ObjectAdapterActivitycom.centurylink.mdw.connector.adapter.ConnectionException - retriable connection failureprotected java.lang.Object getRequestData()
throws com.centurylink.mdw.activity.ActivityException
getRequestData in class ObjectAdapterActivitycom.centurylink.mdw.activity.ActivityException - when the attribute cannot be
fetched for any reason