activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Co <...@exist.com>
Subject Re: Exclusive Consumer
Date Wed, 30 Aug 2006 05:29:06 GMT
Hi,

I haven't tried it, but maybe you can set it in the jndi.properties file.

e.g.
queue.MyQueue = example.MyQueue?consumer.exclusive=true

Let me know how it goes. :)


Jack1011 wrote:
> I saw the example to create Exclusive Consumer as below.
> queue = new ActiveMQQueue("TEST.QUEUE?consumer.exclusive=true");
> If I use JNDI, how do I do?
> initialContext.lookup("TEST.QUEUE?consumer.exclusive=true") does not work.
>
> Any idea? Thanks in advance.
>   


Mime
View raw message