|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XQMessageAdapter
The XQMessageAdapter is implemented by users that wish to interact with a JCA Resource Adapter within the SonicXQ framework. Its primary responsibility is the translation of SonicXQ specific concepts, such as an XQMessage, into a JCA concept such as an Interaction. It must execute the appropriate interaction on the Resource Adapter based on the method called by the SonicXQ framework. Other capabilities are message factory functionality and SubscriptionSpec generation. Implementations can selectively implement only the methods desired. All others must throw java.lang.UnsupportedOperationException.
Method Summary | |
---|---|
XQMessage |
call(XQMessage message,
long timeout)
Sends a message and receives the response from the EIS |
XQMessage |
createMessage()
creates the default message implementation for the adapter. |
XQMessage |
createMessage(java.lang.Object nativeMessage)
translates the native message format into an XQMessage |
java.util.Map |
createSubscriptionSpec()
creates a Map of Resource Adapter specific subscription properties |
void |
destroy()
frees up resources that are no longer needed. |
void |
init(XQAdapterContext context)
called to initialize the adapter. |
void |
send(XQMessage message)
sends the message to the EIS |
Method Detail |
---|
void init(XQAdapterContext context) throws XQEndpointCreationException
context
- the container context
XQEndpointCreationException
- thrown when initialization fails for user defined reasonsvoid send(XQMessage message) throws XQEndpointException
message
- the message to send
XQEndpointException
- thrown in response to an invalid message or an EIS exceptionXQMessage call(XQMessage message, long timeout) throws XQEndpointException
message
- the message to sendtimeout
- a suggested time to wait in milliseconds for a response
XQEndpointException
- thrown due to EIS Exception or invalid messageXQMessage createMessage() throws XQEndpointException
XQEndpointException
- thrown when an error is generated during message creationXQMessage createMessage(java.lang.Object nativeMessage) throws XQEndpointException
nativeMessage
- the message received from the adapter
XQEndpointException
- thrown due to invalid message or message creation exceptionsjava.util.Map createSubscriptionSpec() throws XQEndpointException
XQEndpointException
- thrown when their is an error generating the propertiesvoid destroy()
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |