This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push: new d57f186 Fix #1428 to add the usage.adoc d57f186 is described below commit d57f186c712a1edd944bdfb2325f4e9b6f8b1d87 Author: Amos Feng <zf...@redhat.com> AuthorDate: Mon Jul 6 16:49:41 2020 +0800 Fix #1428 to add the usage.adoc --- extensions/jta/runtime/src/main/doc/usage.adoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/extensions/jta/runtime/src/main/doc/usage.adoc b/extensions/jta/runtime/src/main/doc/usage.adoc new file mode 100644 index 0000000..1aadb4a --- /dev/null +++ b/extensions/jta/runtime/src/main/doc/usage.adoc @@ -0,0 +1,13 @@ +This extension should be added when you need to use the `transacted()` EIP in the router. It leverages the transaction capabilities provided by the narayana-jta extension in Quarkus. + + +Refer to the https://quarkus.io/guides/transaction[Quarkus Transaction guide] for the more details about transaction support. For a simple usage: + +[source,java] +---- +from("direct:transaction") + .transacted() + .to("sql:INSERT INTO A TABLE ...?dataSource=ds1") + .to("sql:INSERT INTO A TABLE ...?dataSource=ds2") + .log("all data are in the ds1 and ds2") +----