I am trying to create a small program that reads off an mqseries jms queue
and prints some of the information in the message to a printer. I would like
to encapsulate the code in a transaction, so that if a problem occurs with
the printer, the message will stay on the queue until the problem is
resolved.

I've tried adding the transacted property to my JmsComponent as follows:

<property name="transacted" value="true"/>

But, when the program reads from the queue and fails to print, the message
is gone from the queue. In other words, the rollback doesn't seem to occur.

Please let me know if I need to add additional code to make the rollback
happen.

Thanks,
Stephen
-- 
View this message in context: 
http://www.nabble.com/JMS-Transactions---How-To-tp15168958s22882p15168958.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to