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.

Reply via email to