activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmocnik <>
Subject Re: Rollback and acknowledge
Date Wed, 10 Dec 2008 15:42:08 GMT


James.Strachan wrote:
> 2008/12/10 mmocnik <>:
>> Hi,
> [...]
>> So:
>> Is there any way to just rollback one message?
> Sure - so long as you do a commit/rollback on each message :). i.e. if
> you do a commit or rollback after processing each message then only 1
> message will ever be rolled back.
> [...]

Hm, that's exactly what I am trying to do.
onMessage in the MessageListener I either do session.rollback(), or
But if there are more than one message in the queue and the first one is
poisoned, a session.rollback() causes the iteration of queued messages to
break and redelivery is triggered (after delay).
None but the first Message will ever get handeled until its redelivery limit
is reached.

Am I doing something wrong?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message