Connectivity
Configure bindings to support asynchronous invocation patterns (JMS, MQ)
Invocation Patterns
SCA provides four invocation patterns.
- Synchronous
Client issues a request and waits for the response.
- Asynchronous one-way
Client issues a request and a response is not expected.
- Asynchronous deferred response
Client issues a request and the response will be requested by the client at a later point in time.
- Asynchronous call back
Client issues a request and the target will call a service implemented by the client with the response.
JMS binding configuration
Consider a JMS binding when these factors are applicable:
- You need to access a messaging system
- The services are loosely coupled
- Reliability is more important than performance; that is, asynchronous data transmission is preferred over synchronous.
- Note: There are several types of JMS bindings. If you are using the Web Service binding, only the SOAP/JMS transport protocol is supported. See Service import and export binding types.
The following must be configured to support asynchronous invocation
- JMS Messaging domain
Set to Point-to-Point
- Managed connection factory A factory used to create the connection to the messaging provider
Send Destination Properties
The destination where the message would be sentReceive Destination PropertiesThe destination where the response message would be received. This value is specified in the JMSReplyTo field of the sent message.
MQ binding configuration
Consider an MQ binding when these factors are applicable:
- You need to access a WebSphere MQ messaging system and need to use the MQ native functions
- The services are loosely coupled
- Reliability is more important than performance; that is, asynchronous data transmission is preferred over synchronous.
The following must be configured to support asynchronous invocation.
- JMS Messaging domain
Set to Point-to-Point
- Managed connection factory A factory used to create the connection to the messaging provider
Send Destination Properties
The destination where the message would be sentReceive Destination PropertiesThe destination where the response message would be received. This value is specified in the JMSReplyTo field of the sent message.
Related links
No comments:
Post a Comment