Skip to content

Commit

Permalink
Applying Yoan Rodieere's feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maléř <[email protected]>
  • Loading branch information
MichalMaler committed Feb 10, 2025
1 parent 1ac257e commit 0658918
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/main/asciidoc/datasource.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Because this behavior is unexpected and can lead to data loss, an interceptor ro
However, if you use XA transactions, the transaction manager handles the rollback.

If the behavior introduced in 3.18 causes issues for your workload, disable it by setting the `-Dquarkus-oracle-no-automatic-rollback-on-connection-close` system property to `true`.
If possible, report your use case in our link:https://github.com/quarkusio/quarkus/issues[issue tracker] so we can adjust this behavior if needed.
Make sure to report your use case in our link:https://github.com/quarkusio/quarkus/issues[issue tracker] so we can adjust this behavior if needed, for example, with more permanent settings.


[[reactive-datasource]]
Expand Down Expand Up @@ -513,6 +513,10 @@ public class MyConsumer {
}
----

Alternatively, you can define a xref:cdi.adoc#ok-you-said-that-there-are-several-kinds-of-beans[CDI bean producer] for the default datasource.
This bean producer redirects to the currently active named datasource.
This allows it to be injected directly, as shown below:

[source,java,indent=0]
----
public class MyProducer {
Expand Down

0 comments on commit 0658918

Please sign in to comment.