Tuesday, June 16, 2009

Configure bindings to support asynchronous invocation patterns

Connectivity

Configure bindings to support asynchronous invocation patterns (JMS, MQ)

Invocation Patterns

SCA provides four invocation patterns.

  1. Synchronous
    Client issues a request and waits for the response.
  2. Asynchronous one-way
    Client issues a request and a response is not expected.
  3. Asynchronous deferred response
    Client issues a request and the response will be requested by the client at a later point in time.
  4. 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:
 
  1. You need to access a messaging system
  2. The services are loosely coupled
  3. Reliability is more important than performance; that is, asynchronous data transmission is preferred over synchronous.
  4. 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
  1. JMS Messaging domain
    Set to Point-to-Point
  2. Managed connection factory A factory used to create the connection to the messaging provider
    Send Destination Properties
    The destination where the message would be sent
    Receive Destination Properties
    The 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.
  1. JMS Messaging domain
    Set to Point-to-Point
  2. Managed connection factory A factory used to create the connection to the messaging provider
    Send Destination Properties
    The destination where the message would be sent
    Receive Destination Properties
    The destination where the response message would be received. This value is specified in the JMSReplyTo field of the sent message.

Related links

  1. SCA asynchronous invocation patterns in depth

 

  
 
 

No comments: