quarkus - Unable to disable auto-commit for datasource - Stack Overflow

admin2025-04-17  2

I am trying to disable auto-commit for the Quarkus-provided datasource. That is, to have this:

@Inject
javax.sql.DataSource ds;

with auto-commit disabled.

Given that I am using quarkus-hibernate-orm the actual datasource implementation is Agroal which supports disabling auto-commit through its connection factory.

It seems that the missing part is gluing logic in DataSources which would bind the application.properties with the connection factory above.

Am I missing something?

转载请注明原文地址:http://anycun.com/QandA/1744878471a88906.html