We need some plug-in or directions of how to do the following:
- send a message to a queue
- pass the message from the queue to a camel route
- arrive at a second queue
and only when the message safely arrived on the second queue, would we like to acknowledge the message on the first queue. If the message would never reach the second queue, we would want it to be redelivered after a specific timeout.
For that, we believe that XA transactions involving both queues would be a overkiller (too much overhead). We're therefore looking for a lightweight solution for a distributed transaction involving more than one queue.
Edited by: lufe on Jun 2, 2010 10:08 AM
Edited by: lufe on Jun 1, 2010 9:24 AM
You shouldn't need XA transactions for this case. You can read from the first queue and write to the second queue all as part of the same JMS transaction.
If you're using a Camel route, then enabling transactions is pretty easy - you can do this by simple config. See the Apache Camel JMS component documentation page at http://camel.apache.org/jms.html.