activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Message Integrity
Date Wed, 09 Sep 2009 13:36:04 GMT
You can do that - but each consumer (MessageListener) needs to be  
created from a different javax.jms.Session
On 9 Sep 2009, at 14:03, pa7751 wrote:

>
> Hi
>
> Thanks for the information. As suggested by you, ActiveMQ will  
> ensure that
> the same message does not gets picked up by both the consumers. But  
> can we
> have more than one listeners to the queue like listener1 processes  
> message1
> and listener2 processes message2 at the same time. This will improve
> performance. Is this possible with ActiveMQ?
>
> Sorry if this is a dumb question coz I am new to queuing
>
> Thanks
>
>
>
> James.Strachan wrote:
>>
>> 2009/9/9 pa7751 <pa7751@gmail.com>:
>>>
>>> Hi
>>>
>>> I have a queue in ActiveMQ messagings server. There are two  
>>> listeners(on
>>> different machines), that are listening to the same queue. This is  
>>> done
>>> for
>>> faster processing of the messages in the queue. Will ActiveMQ  
>>> ensure that
>>> the same message is not received by both?
>>
>> Yes, ActiveMQ's queues act as a load balancer of messages across
>> consumers.
>>
>>
>>> Also will it ensure that both
>>> listeners do not seek the same message from the queue?
>>
>> Yes
>>
>> See
>> http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html
>>
>> -- 
>> James
>> -------
>> http://macstrac.blogspot.com/
>>
>> Open Source Integration
>> http://fusesource.com/
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Message-Integrity-tp25363310p25364489.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Rob Davies
I work here: http://fusesource.com
My Blog: http://rajdavies.blogspot.com/
I'm writing this: http://www.manning.com/snyder/





Mime
View raw message