Thank you Richard!

I've read TransactionErrorHandler page on camel website. But can I raise one
more question? What is basically the relationship between transacted() and
errorHandler(transactionErrorHandler()) sentence?

Assume:
1) I don't want camel to do redelivery(the transaction just rolls back, and
wait camel to start it all over again).

2) There are multiple transaction managers/policies.

Are the following blocks different?
A)
final SpringTransactionPolicy wmqTxPolicy =
(SpringTransactionPolicy)ContextManager.getBean("wmqTxPolicy");
...
    from("wmq:yyy") 
    .routeId("data-wmq-to-amq") 
    .errorHandler(transactionErrorHandler(wmqTxPolicy)) 
    .transacted("wmqTxPolicy") 
    .to("amq:yyy");

B)
    from("wmq:yyy") 
    .routeId("data-wmq-to-amq") 
    .transacted("wmqTxPolicy") 
    .to("amq:yyy");

-----
~Hanson
Java for food, Python for fun
http://hanson.appspot.com/
--
View this message in context: 
http://camel.465427.n5.nabble.com/Question-about-TransactionErrorHandlerBuilder-tp4395278p4399059.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to