Skip to content

Commit

Permalink
Merge pull request #35770 from MichalMaler/Transaction-guide
Browse files Browse the repository at this point in the history
Adding additional information for the JDBCStore section of the Transaction guide
  • Loading branch information
gastaldi committed Sep 7, 2023
2 parents a9e6539 + 36af232 commit 8c01b00
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/src/main/asciidoc/transaction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ IMPORTANT: While there are several benefits to using a database to store transac

Quarkus allows the following JDBC-specific configuration of the object store included in `quarkus.transacion-manager.object-store.<property>` properties, where <property> can be:


* `type` (_string_): Configure this property to `jdbc` to enable usage of a Quarkus JDBC datasource for transaction logging.
The default value is `file-system`.
* `datasource` (_string_): Specify the name of the datasource for the transaction log storage.
Expand All @@ -382,6 +383,20 @@ The default value is `false`.
* `table-prefix` (string): Specify the prefix for a related table name.
The default value is `quarkus_`.

// This paragraph will differ from the RHBQ docs in the future since it is not supported in the product yet.
Additional information:

* You can manually create the transaction log table during the initial setup by setting the `create-table` property to `true`.

* JDBC datasources and ActiveMQ Artemis allow the enlistment and automatically register the `XAResourceRecovery`.

** JDBC datasources is part of `quarkus-agroal`, and it needs to use `quarkus.datasource.jdbc.transactions=XA`.
** ActiveMQ Artemis is part of `quarkus-pooled-jms`, and it needs to use `quarkus.pooled-jms.transaction=XA`.
+
For more information, see link:https://issues.redhat.com/browse/CEQ-4878[CEQ-4878].

* If your application employs eXtended Architecture (XA) transactions, enable the transaction crash recovery feature by using `quarkus.transaction-manager.enable-recovery=true`, to safeguard your data in the event of application crashes or failures. The default value for XA Recovery is `false`.

[NOTE]
====
To work around the current known issue of link:https://issues.redhat.com/browse/AG-209[Agroal having a different view on running transaction checks], set the datasource transaction type for the datasource responsible for writing the transaction logs to `disabled`:
Expand Down

0 comments on commit 8c01b00

Please sign in to comment.