+

Search Tips   |   Advanced Search

Use a scoped service integration bus alias destination to restrict messages to a single queue point

We can use a service integration bus alias destination to target a service integration bus queue that has multiple queue points. We can do this to ensure that a reply message is sent to the appropriate queue point for a cluster bus member.

A service integration bus queue has multiple queue points if it is owned by a cluster bus member with multiple messaging engines (typically, to provide workload sharing or scalability).

To restrict messages to a single queue point in this way, configure the alias destination to scope the targeted queue down to a single queue point (see Alias destination [Settings]).

If we configure a JMS queue to use such an alias destination, all messages sent to the JMS queue are sent to, or received from, the single queue point. Using such a JMS queue as a reply queue to avoid situations where reply messages are sent to the wrong queue point.

Figure 1. Using a scoped service integration bus alias destination to restrict messages to a single queue point

It is good practice to make the messaging engine that owns the queue point to which the alias destination is scoped, highly available.

This approach has the following advantages:

This approach has the following disadvantages:

Refinement

We can improve the workload balancing of the system by configuring a scoped alias destination (and accompanying JMS queue) for each queue point of the reply queue, and then sharing requesting applications across these alias destinations. If the requesting application intends to disconnect and reconnect before receiving the reply message, it must use the JMS queue/alias destination that it set as the JMSReplyTo destination in the request message.


Related concepts

  • Foreign destinations and alias destinations
  • JMS request and reply messaging with cluster bus members