Skip to content

Commit

Permalink
Fix apache#1428 to add the usage.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfeng committed Jul 6, 2020
1 parent 0ad3064 commit 86dbb24
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions extensions/jta/runtime/src/main/doc/usage.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This extension could be used when you need the `transacted()` in the router. It leverages the transaction capability provided by the narayana-jta extension in the Quarkus.


Refer to the https://quarkus.io/guides/transaction[Quarkus Transaction guide] for the more details about the transaction. 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")
----

0 comments on commit 86dbb24

Please sign in to comment.