How to integrate Quarkus with JetBrains Exposed? #42593
Replies: 3 comments 8 replies
-
Found this: I don't understand this yet but it seems to be the other way around; the Hibernate ORM extension delegates to JTA? |
Beta Was this translation helpful? Give feedback.
-
@micheljung It should work out-of-the-box If you inject an AgroalDataSource (https://quarkus.io/guides/datasource#consuming-the-datasource) and use the DataSource as input for Exposed because the DataSource ist Transaction aware. Something like this: |
Beta Was this translation helpful? Give feedback.
-
The only thing that could be problematic ist that Exposed ist using/creating it's own Transaction Manager... |
Beta Was this translation helpful? Give feedback.
-
I'm trying to integrate Quarkus JTA with JetBrains Exposed, see also: Integrate with Quarkus/JTA
The problem is basically how to inject a Exposed-aware transaction manager into Narayana Transaction Manager, like it is somehow done for Hibernate ORM:
https://quarkus.io/guides/hibernate-orm#automatic-integration
I tried to copy from https://github.com/quarkusio/quarkus/tree/9070ad725ed552de597a1683c6f864f856ede3b9/extensions/hibernate-orm but I was unable to find the code that does it.
Any hints?
Beta Was this translation helpful? Give feedback.
All reactions