Claus Ibsen created CAMEL-26851:
-----------------------------------
Summary: camel-main - transacted with a local transaction manager
when the application has one datasource
Key: CAMEL-26851
URL: https://issues.apache.org/jira/browse/CAMEL-26851
Project: Camel
Issue Type: Improvement
Components: camel-main, camel-jbang
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 4.24.0
A route that uses transacted needs a transaction manager. Spring Boot and
Quarkus set one up; Camel Main and camel run do not. When the application has
one datasource and a route uses transacted, set up a local transaction manager
for that datasource and the PROPAGATION_* policies, unless the user declared
their own. The sql component then takes part in the transaction. So transacted
works in Camel Main and camel run, for example to roll back an order whose
second insert fails.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)