WebSphere WebSphere Application Server Version 6.1.x Feature Pack for Web Services Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

Point-to-point messaging example using remote queue points

When a producing or consuming application is remote from its destination, remote queue points are used to manage the flow of messages between the messaging engine where the destination is located, and the messaging engine to which the application is attached.

The following diagram illustrates the use of remote queue points in point-to-point messaging. The producing application attaches to messaging engine ME1, but the bus destination targeted by the application has a queue point that resides on ME2. The queue point on ME2 is represented at runtime by a remote queue point on ME1. The remote queue point receives messages from the application and then reliably transmits them to the queue point on ME2. Likewise, the consuming application attaches to ME3 and consumes messages from the queue point on ME2 through a remote queue point on ME3.
Figure 1. Point-to-point message production and consumption using remote queue points.The bus contains three messaging engines, ME1, ME2 and ME3. The queue point resides on ME2. The producing application is connected to ME1 and the consuming application is connected to ME3. The messages are routed from ME1 to ME2, and from ME2 through remote queue points on ME1 and ME3.
The sequence of steps involved in remote message production is as follows:
  1. The producing application, attached to ME1, sends a message to the queue destination, which has a queue point defined on ME2.
  2. Messages are queued up on the remote queue point on ME1 before transmission to the queue point on ME2.
  3. The message is sent to the queue point on ME2 as soon as possible. ME1 remembers the existence of the message until ME2 confirms that it has received the message.
The sequence of steps involved in remote message consumption is as follows:
  1. The consuming application, attached to ME3, attempts to consume a message from the queue destination.
  2. ME3 sends a message request to the queue point on ME2.
  3. When a message that satisfies the criteria of the message request is available at the queue point on ME2, the message is sent to the remote queue point on ME3.
  4. The message is delivered from the remote queue point to the consuming application. If the application consumes the message, the message is deleted from the queue point on ME2. If the application does not consume the message, the message is made available again on the queue point on ME2 for other applications to consume. In either case, the message request is completed and removed from the remote queue point on ME3.

Concept topic

Terms of use | Feedback


Timestamp icon Last updated: 27 November 2008
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.wsfep.multiplatform.doc/concepts/cjo_remote_p2p.html

Copyright IBM Corporation 2004, 2008. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)