jsr343-experts@jms-spec.java.net

[jsr343-experts] Re: (JMS_SPEC-51) Change Session.createDurableSubscriber() to return a MessageConsumer

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Wed, 21 Sep 2011 11:09:48 +0100

On 20/09/2011 15:33, Ruediger zu Dohna wrote:
> Nigel,
>
> +1 for createDurableConsumer, but I'd also suggest to change the first parameter from Topic to Destination... or we'd
> still have a dependency.

Thanks. This is my "second" proposal:

MessageConsumer createDurableConsumer(Topic topic, java.lang.String name)

MessageConsumer createDurableConsumer(Topic topic, java.lang.String name, java.lang.String messageSelector, boolean
noLocal)

We're not removing the Topic and Queue interfaces - or the distinction between topics and queues in general. You can't
create a durable consumer on a queue, so the first argument still needs to be a Topic.

In the same way, you can't create a QueueBrowser on a topic, so we still need Session.createBrowser(Queue queue).

Nigel