|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SFCServiceContext
Context for service invocations.
Method Summary | |
---|---|
void |
addFault(XQEnvelope fault)
Adds the specified envelope to the faultbox. |
void |
addFault(XQMessage fault)
Wraps the specified message in an envelope and adds it to the faultbox. |
void |
addIncomingToOutbox()
Add the incoming message envelope to the outbox. |
void |
addOutgoing(XQEnvelope outgoing)
Adds the specified envelope to the outbox. |
void |
addOutgoing(XQMessage outgoing)
Wraps the specified message in an envelope and adds it to the outbox. |
void |
clearFaults()
Clears the faultbox of all envelopes. |
void |
clearOutgoing()
Clears the outbox of all envelopes. |
javax.jms.Connection |
getCurrentJMSConnection()
Returns the JMS Connection associated with the current dispatch. |
javax.jms.Session |
getCurrentJMSSession()
Returns the JMS Session associated with the current dispatch. |
int |
getCurrentListener()
Returns the id of the current listener thread. |
XQEnvelope |
getMessageEnvelope()
Returns the message envelope currently being handled. |
XQProcessContext |
getProcessContext()
Returns the current process context, or null if the service has not been invoked as part of a process. |
java.lang.String |
getProcessID()
Return the current process tracking id, or the empty string if not in a process. |
java.lang.String |
getProcessName()
Return the current process name, or the empty string if not in a process. |
java.lang.String |
getProcessStepName()
Return the current process step name, or the empty string if not in a process. |
VariableParser |
getVariableParser()
Returns a variable parser that can be used during service
and has access to the current message envelope. |
XQServiceContext |
getXQServiceContext()
Provides access to the standard XQServiceContext . |
boolean |
hasFaults()
Indicates whether there are any faults currently in the faultbox. |
boolean |
hasOutgoing()
Indicates whether there are any messages currently in the outbox. |
boolean |
isInProcess()
Returns true if the current invocation is a step in an ESB
process. |
Methods inherited from interface com.sonicsw.esb.service.common.SFCInitializationContext |
---|
getAbsoluteServiceInstanceName, getAddressFactory, getDispatcher, getDomainName, getEndpointManager, getEnvelopeFactory, getESBContainerName, getLifeCycle, getMessageFactory, getMFContainerName, getNumberOfListeners, getParameters, getServiceName, getServiceTypeName, getXQInitContext, setXQInitContext |
Method Detail |
---|
XQEnvelope getMessageEnvelope()
void addIncomingToOutbox()
int getCurrentListener()
boolean isInProcess()
true
if the current invocation is a step in an ESB
process.
java.lang.String getProcessID()
java.lang.String getProcessName()
java.lang.String getProcessStepName()
void addFault(XQEnvelope fault)
void addFault(XQMessage fault)
boolean hasFaults()
void clearFaults()
void addOutgoing(XQEnvelope outgoing)
void addOutgoing(XQMessage outgoing)
void clearOutgoing()
boolean hasOutgoing()
VariableParser getVariableParser()
service
and has access to the current message envelope.
getVariableParser
in interface SFCInitializationContext
XQServiceContext getXQServiceContext()
XQServiceContext
.
XQProcessContext getProcessContext()
javax.jms.Session getCurrentJMSSession()
XQServiceContext.getCurrentJMSSession()
javax.jms.Connection getCurrentJMSConnection()
XQServiceContext.getCurrentJMSConnection()
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |