forked from apache/camel-quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix apache#1428 to add the usage.adoc
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
---- |