public abstract class MOperationImpl extends MOperation
onInvoke(MServerRequest, MServerReply )
or onOnewayInvoke(MServerRequest)
to provide a meaningful implementation (depending on whether the operation is defined to be one-way). Modifier and Type | Field and Description |
---|---|
protected boolean |
m_doesExplicitConfirmation |
protected int |
m_messageFormat |
protected MRpcServer |
m_rpcServer |
m_operationInstance, m_trackingInfo, m_userClosure
m_app, m_classDescription, m_operationClassName, m_operationDescription, m_operationName
OPERATION_CLOSURE_TAG, OPERATION_EXCEPTIONDATA_TAG, OPERATION_EXCEPTIONNAME_TAG, OPERATION_HASEXCEPTION_TAG, OPERATION_REQUEST_TAG, OPERATION_RETURNVALUE_TAG, OPERATION_USERCLOSURE_TAG
Modifier | Constructor and Description |
---|---|
protected |
MOperationImpl(MApp app,
MModeledClassDescription operationClass,
MOperationDescription operation,
java.lang.String serverName) |
protected |
MOperationImpl(MApp app,
java.lang.String operationClassName,
java.lang.String operationName,
java.lang.String serverName)
Constructor for
MOperationImpl . |
Modifier and Type | Method and Description |
---|---|
boolean |
doesExplicitConfirmation() |
void |
noAutoConfirm()
Enable explicit confirmation for operations that use persistent delivery mode
or JMS manual message-ack.
|
void |
onInvoke(MServerRequest request,
MServerReply reply)
This method executes when the remote operation is invoked on the server
implementation.
|
void |
onOnewayInvoke(MServerRequest request)
This method executes when the remote operation is invoked on the server
implementation.
|
get, get, getClosure, getKeys, getTrackingInfo, isNullData, set, setClosure, setNullData, setTrackingInfo, validateParameter
getClassDescription, getOperationDescription, retrieveClasssDescription, retrieveOperationDescription
protected MRpcServer m_rpcServer
protected boolean m_doesExplicitConfirmation
protected int m_messageFormat
protected MOperationImpl(MApp app, java.lang.String operationClassName, java.lang.String operationName, java.lang.String serverName) throws MException
MOperationImpl
.app
- Application manager for which this operation implementation
is created.operationClassName
- Class name in which this operation is
defined in the TIBCO Designer software.operationName
- Operation name given in the TIBCO Designer software.serverName
- Server name defined in the TIBCO Designer software.MException
protected MOperationImpl(MApp app, MModeledClassDescription operationClass, MOperationDescription operation, java.lang.String serverName) throws MException
MException
public void onOnewayInvoke(MServerRequest request)
onInvoke(MServerRequest, MServerReply)
.
All applications must define this method or onInvoke(MServerRequest, MServerReply)
.
request
- MServerRequest
object that is passed in with this remote invocation.public void onInvoke(MServerRequest request, MServerReply reply)
onOnewayInvoke(MServerRequest)
.
Applications are responsible for filling the enclosed reply object and sending it to the requestor.
request
- MServerRequest
object that is passed in with this remote invocation.reply
- Pointer to the location where the MServerReply
object that results from this invocation is stored.public void noAutoConfirm() throws MException
MException
public boolean doesExplicitConfirmation()