You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/07/06 11:30:02 UTC

[camel-quarkus] branch master updated: Regen docs

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 2c6b58d  Regen docs
2c6b58d is described below

commit 2c6b58d7d6e161314e6427ba594f1d80d9935d5a
Author: James Netherton <ja...@gmail.com>
AuthorDate: Mon Jul 6 12:29:47 2020 +0100

    Regen docs
---
 docs/modules/ROOT/pages/extensions/jta.adoc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/modules/ROOT/pages/extensions/jta.adoc b/docs/modules/ROOT/pages/extensions/jta.adoc
index 9ee1cc5..dae2f55 100644
--- a/docs/modules/ROOT/pages/extensions/jta.adoc
+++ b/docs/modules/ROOT/pages/extensions/jta.adoc
@@ -26,3 +26,20 @@ Please refer to the above link for usage and configuration details.
 ----
 
 Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
+
+== Usage
+
+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")
+----
+