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