Enabling a provider to stream messages to cloned durable subscriptions

Use this task to enable a provider to stream messages to consumers ahead of their message requests. This is most often used by publish/subscribe consumers to provide a performance enhancement.

About this task

To indicate that a provider must stream messages to consumers, you can set the Leitura Antecipada property to Ativado. This property can be set on a connection factory to specify the behavior for all connections created using that connection factory. The property can also be set on JMS topics, to enable different behavior when sending messages to different JMS topics from the same connection.

You are recommended to leave this property set to Default, which enables the messaging provider to decide whether it should stream messages to consumers. The messaging provider makes this decision based on the environment in which the durable subscriber is running. You should only set this property to enable message streaming if you are sure that a durable subscription is used by only one consumer at a time.

  • In a non-cloned environment, the default setting enables messaging streaming for durable subscribers.
  • For cloned durable subscribers (that is, a durable subscriber that is part of an application cloned in a server cluster), the default setting prevents message streaming and the messages on the subscription are shared among the clones. If you are moving from a non-cloned environment, to cloned durable subscribers, you might see a drop in performance. If you are sure that a durable subscription is still used by only one consumer at a time, you can enable message streaming as described in this topic.

Messages that are streamed to the consumer but are not consumed before the consumer disconnects are unlocked when the consumer closes. Only then do those messages become available for consumption by other consumers.

To force the messaging provider to stream messages to cloned durable subscriptions, use the administrative console to complete the following steps to change the connection factory:

Procedure

  1. Display the JMS connection factory; for example, as described in Configurando um Connection Factory Unificado para o Provedor de Sistemas de Mensagens Padrão. All clones of a durable subscriber use the same JMS connection factory.
  2. Set the Leitura Antecipada property to Ativado.
  3. Click OK.
  4. Salve suas alterações na configuração principal.

Ícone que indica o tipo de tópico Tópico de Tarefa



Ícone de registro de data e hora Última atualização: July 9, 2016 7:55
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tjo0034_
Nome do arquivo: tjo0034_.html