activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Rollback and acknowledge
Date Thu, 11 Dec 2008 09:32:04 GMT
2008/12/11 James Strachan <james.strachan@gmail.com>:
> 2008/12/11 mmocnik <m.mocnik@e-nnovation.at>:
>>
>>
>>
>> James.Strachan wrote:
>>>
>>>>[...]
>>> Normally redelivery of the last message occurs - to avoid breaking
>>> order. Is that what you need?
>>>
>>> If you are not seeing this - are you closing & recreating the
>>> MessageConsumer on rollback?
>>>
>>
>> Oh, okay, that is what I am seeing.
>> But its not what I want to happen.
>> Can I somehow tell ActiveMQ to ignore the order of messages and just handle
>> the messages as they come in?
>
> So messages being redelivered, you want then to go to the back of the
> queue? If thats what you want, don't rollback, just resend the message
> back onto the queue (so it'll go to the back of the list).

Closing and recreating the consumer often forces the rolled back
message to go back a bit (due to prefetch buffers and so forth)
http://activemq.apache.org/what-is-the-prefetch-limit-for.html

though I think putting redelivered messages at the tail of the queue
(so its dispatched last) is what you want - so resending the message
rather than rolling back & closing is probably more suitable

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message