camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fridlyos <>
Subject RE: Camel JMS re-delivery on failure
Date Tue, 19 Jul 2011 15:26:41 GMT
Thanks very much for the help.
Everything to work now.. I had an issue with an odlder version of camel not working with spring
3.0 (transaction not rolling back), but it seems to work with 2.7 and 3.0.5 (spring)

Thanks again...

Albert Friedland
(212) 816-8170

From: Ashwin Karpe [via Camel] []
Sent: Monday, July 18, 2011 5:38 PM
To: Friedland, Albert [ICG-IT]
Subject: Re: Camel JMS re-delivery on failure


Rollback of transactions all the way back to the Queue happens only if the ActiveMQ consumer/producer
that write to the queue/topic use a Transacted session in ActiveMQ.

When you create a connection factory, you need to set a Transaction Manager and a associated
a Transaction against the JMS consumer. When the JMS consumer picks up the message and the
session is transacted, then in case of failure to perform the route and in case of exception
the message will reappear on the queue from where the consumer picked up the message...

Please find a working spring sample of how to create a transactional JMS Ccomponent below

(Note that there are 2 configurations shown) in the link above.

As for then using the transactional JMS component, please find a working transactional camel
route below


Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)


If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Camel JMS re-delivery on failure, click here<>.

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message