activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <...@artnaseef.com>
Subject Re: I want a queue allows only one consumer , can I do that ?
Date Thu, 23 Jan 2014 04:03:41 GMT
There is an option with ActiveMQ for exclusive consumption like this:

queue = new ActiveMQQueue("TEST.QUEUE?consumer.exclusive=true");


For more details, see here:

http://activemq.apache.org/exclusive-consumer.html


This does not force close an existing consumer on connecting a new one
though.



--
View this message in context: http://activemq.2283324.n4.nabble.com/I-want-a-queue-allows-only-one-consumer-can-I-do-that-tp4676687p4676693.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message