+

Search Tips   |   Advanced Search

Configure the requester to consume messages from all queue points simultaneously

By default, a JMS message consumer consumes from only one queue point for the lifetime of the message consumer. If the reply queue has more than one queue point, unless the reply message is restricted to one particular queue point, the consumer might not be consuming from the queue point to which the reply is sent, and might not receive the reply message.

However, we can configure the JMS queue used by the message consumer to allow the message consumer to simultaneously consume from all queue points of the identified service integration bus queue, irrespective of which messaging engine the requesting application is connected to.

The JMS queue option for this is Message visibility. If we enable Message visibility (Message gathering), we do not have to restrict the location of the reply message, as the reply message is visible whichever messaging engine the requesting application is connected to (see Related tasks for more details).

In the following figure, a consuming application connects to a messaging engine that has message visibility enabled but no local queue point. The associated queue point consumes messages from all available queue points of a destination and makes them available to the consumer.

Figure 1. Message visibility: messages are consumed from all queue points

Advantages:

Disadvantages:


Related concepts

  • JMS request and reply messaging with cluster bus members


    Related tasks

  • Configure a queue for the default messaging provider