You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jack1011 <ll...@hotmail.com> on 2006/08/30 04:05:31 UTC

Exclusive Consumer

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.
-- 
View this message in context: http://www.nabble.com/Exclusive-Consumer-tf2187362.html#a6051195
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Exclusive Consumer

Posted by Jack1011 <ll...@hotmail.com>.
That seems to be working. Thanks.


Adrian Co wrote:
> 
> 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.
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Exclusive-Consumer-tf2187362.html#a6059416
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Exclusive Consumer

Posted by Adrian Co <ac...@exist.com>.
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.
>