How to rollback transaction in apache camel dsl?
Answer / Shanuvendra Kumar Prasad
To rollback a transaction in Apache Camel DSL, you can use the exception strategy and set the `onException` clause to handle exceptions and perform rollback actions using a `transactionTemplate`. For example: `onException(Exception.class) .useOriginalTransaction() .transacted().rollback();`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is apache camel used for?
How is a camel exchange created?
Enlist few good uses for apache camel?
Have you used apache camel with spring boot?
What is redelivery policy in apache camel?
What jars do I need?
How camel handles multiple parameter binding in bean method?
Can we call camel an esb (enterprise service bus)?
What is Stream component in camel?
How to start the execution of routes apache camel?
What is Out message in camel?
What is difference between routing slip and dynamic router?