jsr343-experts@jms-spec.java.net

[jsr343-experts] Re: (JMS_SPEC-39) Make clientId optional when creating a durable subscription

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Wed, 21 Dec 2011 18:49:52 +0000

On 21/12/2011 18:41, Nigel Deakin wrote:
> http://java.net/jira/browse/JMS_SPEC-39

Whilst working on the documentation for this issue, I have been wondering about the following method on Session:

TopicSubscriber createDurableSubscriber(
    Topic topic, java.lang.String name, java.lang.String messageSelector, boolean noLocal)
    throws JMSException

What is the noLocal flag meant to mean with a durable subscription?

The javadocs state that it specifies "whether messages published by its own connection should be delivered to it".

Does that mean that messages published by this connection should not be added to the durable subscription, or that
messages published by this connection should not be delivered to this particular TopicSubscriber? These do not mean the
same thing, since in the latter case the messages might be saved in the subscription and delivered at some later stage.

My recent changes have left the wording unchanged, but I suspect it needs clarifying.

Nigel