[
https://issues.apache.org/jira/browse/CAMEL-26851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-26851.
---------------------------------
Resolution: Fixed
Merged in https://github.com/apache/camel/pull/29629 (28000bbe7c86).
_Claude Code on behalf of davsclaus_
> 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-jbang, camel-main
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> 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)