diff --git a/docs/src/main/asciidoc/datasource.adoc b/docs/src/main/asciidoc/datasource.adoc index 674d2609105f8..2d653f36cac7f 100644 --- a/docs/src/main/asciidoc/datasource.adoc +++ b/docs/src/main/asciidoc/datasource.adoc @@ -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]] @@ -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 {