2008/12/11 James Strachan <[EMAIL PROTECTED]>:
> 2008/12/11 mmocnik <[EMAIL PROTECTED]>:
>>
>>
>>
>> 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/

Reply via email to