WebSphere WebSphere Application Server Network Deployment, Version 6.0.x Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Publish subscribe messaging across multiple buses

When multiple buses are connected using a service integration bus link, you can connect individual topic space destinations. Then messages published in a topic space in one bus are accessible to subscribers on a topic space in another bus.

You can connect topic space destinations in neighboring buses by configuring a topic space mapping when defining service integration bus link routing property. Each entry in the mapping allows a local topic space destination to be mapped to a topic space in the foreign bus. A foreign bus is a representation of another service integration bus, or a WebSphere MQ queue manager, with which an existing service integration bus, or a WebSphere MQ queue manager, can exchange messages. As a result of establishing the topic space mappings, any subscribers to topics on the topic space in the local bus can receive messages published on those topics in the topic space in the other foreign bus. Unlike point to point queue destinations, publish subscribe applications create producers and subscriptions to topic spaces in their local bus rather than identifying topic spaces that exist in foreign buses. You must configure the applications so that they have topic space mappings to route messages appropriately.

In the example, Figure 1, a subscriber in Bus 1 can receive messages published in Bus 2. A Topic space mapping in Bus 1 enables publications from publishers attached to Topic space 2 in Bus 2 to flow to subscriptions attached to Topic space 1 in Bus 1.
Figure 1. Publish subscribe messaging across Bus 1 and Bus 2A Topic space mapping in Bus 1 enablespublishers attached to Topic space 2 in Bus 2 to flow to subscriptions attached to Topic space 1 in Bus 1.

When connecting topic spaces in more than two buses note that there is no restriction in how multiple buses can be connected. But there is a restriction on how their topic spaces are connected using topic space mappings. For guidance on how to create topic space mappings, refer to Configuring topic space mappings between service integration buses.

A network of buses can contain loops in its topology, as shown in Figure 2. Interconnected topic spaces must follow a hierarchical tree formation. This tree can then be overlaid on the underlying bus topology using topic space mappings as shown in the following picture. It is not permitted for a set of interconnected topic spaces to form a loop across multiple buses as shown in Figure 3.
Note: The names of the local and foreign topic space do not have to match, but the names of the topics must match in both local and foreign buses.
Figure 2. Correct exampleCorrect example of connected topic space containing no loops
Figure 3. Incorrect exampleIncorrect example of connected topic space containing a loop

The correct example shows that messages published in Bus 1 are automatically flowed through Bus 1 to Bus 3, if Bus 3 has a suitable subscription for those messages. You create a mapping from the topic space in Bus 1 to the topic space in Bus 2, and another mapping from the topic space in Bus 3 to the topic space in Bus 1.


Concept topic

Terms of Use | Feedback

Last updated: 15 Mar 2007
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.pmc.nd.doc\concepts\cjj0094_.html

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