users@jms-spec.java.net

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

From: Rob Davies <rajdavies_at_gmail.com>
Date: Wed, 21 Dec 2011 18:56:25 +0000

My interpretation of this is the former - that messages published by its own connection should not be added to the durable subscription.


On 21 Dec 2011, at 18:49, Nigel Deakin wrote:

> 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
>