You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dhawan, Vikram (LNG-DAY)" <vi...@lexisnexis.com> on 2006/07/27 17:19:56 UTC

message ack timeout question.

Hi,

 

I have a question regarding receive/acknowledge model in AMQ. 

 

If there are 2 consumers (running on separate machines) connected to AMQ
server on the same queue. Consumer-1 receives a message and don't send
acknowledge. Is consumer-2 will be able to receive this messages ever
without consumer-1 explicitly disconnects from the AMQ server.

 

If yes then what is the time out (and how to set it) in AMQ server so
after that time reaches the message will market as new again and will be
delivered to consumer-2 without disconnecting consumer-1.  

 

Thanks!

 

 

Vik

 


Re: message ack timeout question.

Posted by James Strachan <ja...@gmail.com>.
I just responded to the other empty thread - thought I'd resend my reply...

On 7/27/06, Dhawan, Vikram (LNG-DAY) <vi...@lexisnexis.com> wrote:
> Hi,
>
> I have a question regarding receive/acknowledge model in AMQ.
>
> If there are 2 consumers (running on separate machines) connected to AMQ
> server on the same queue. Consumer-1 receives a message and don't send
> acknowledge. Is consumer-2 will be able to receive this messages ever
> without consumer-1 explicitly disconnects from the AMQ server.

No - consumer 2 will not receive the message until consumer 1
terminates (or is disconnected from the broker).

At some point we could add some kinda inactivity timeout in consumers
so that if they grab messages and don't process them we silently
disconnect the consumer (so they give their prefetches back).



-- 

James
-------
http://radio.weblogs.com/0112098/