You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Raju Narayan <gn...@unidesk.com> on 2009/07/21 12:00:17 UTC
How to restrict MQ shall have only one consumer
Hello,
In my modules interaction scinario we defined only one consumer will exist
per MQ, So How to prevent/query that consumer already exists for given MQ.
So That I can prevent Creating consumers for MQ using NMS(C# .net client).
Thanks in advance
Raju
--
View this message in context: http://www.nabble.com/How-to-restrict-MQ-shall-have-only-one-consumer-tp24584819p24584819.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to restrict MQ shall have only one consumer
Posted by Raju Narayan <gn...@unidesk.com>.
Thanks for quick responce
It sound's to me that user can create multiple(exclosive) consumers, but
first created consumer only will get messages right?
Is there any way to prevent to create consumer and log the user saying
"warning:trying to have multiple consumer"
Because in the above method user will see problem only by knowing that 2nd
consumer not getting messages.
Raju
James.Strachan wrote:
>
> 2009/7/21 Raju Narayan <gn...@unidesk.com>:
>>
>> Hello,
>>
>> In my modules interaction scinario we defined only one consumer will
>> exist
>> per MQ, So How to prevent/query that consumer already exists for given
>> MQ.
>> So That I can prevent Creating consumers for MQ using NMS(C# .net
>> client).
>
> Using Exclusive Consumers ensures that only one consumer is active on
> any queue at any point in time.
> http://activemq.apache.org/exclusive-consumer.html
>
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>
>
--
View this message in context: http://www.nabble.com/How-to-restrict-MQ-shall-have-only-one-consumer-tp24584819p24586544.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to restrict MQ shall have only one consumer
Posted by James Strachan <ja...@gmail.com>.
2009/7/21 Raju Narayan <gn...@unidesk.com>:
>
> Hello,
>
> In my modules interaction scinario we defined only one consumer will exist
> per MQ, So How to prevent/query that consumer already exists for given MQ.
> So That I can prevent Creating consumers for MQ using NMS(C# .net client).
Using Exclusive Consumers ensures that only one consumer is active on
any queue at any point in time.
http://activemq.apache.org/exclusive-consumer.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/
Re: How to restrict MQ shall have only one consumer
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Raju,
the best approach is to develop your own plugin that will do that. Check out
http://activemq.apache.org/developing-plugins.html
for more info.
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Tue, Jul 21, 2009 at 12:00 PM, Raju Narayan <gn...@unidesk.com> wrote:
>
> Hello,
>
> In my modules interaction scinario we defined only one consumer will exist
> per MQ, So How to prevent/query that consumer already exists for given MQ.
> So That I can prevent Creating consumers for MQ using NMS(C# .net client).
>
> Thanks in advance
> Raju
> --
> View this message in context:
> http://www.nabble.com/How-to-restrict-MQ-shall-have-only-one-consumer-tp24584819p24584819.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>