-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature : Quarkus integration #320
Feature : Quarkus integration #320
Conversation
Thanks @RomainWilbert, and welcome! I'll give it a quick review now. |
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiInstanciator.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiInstanciator.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiInstanciator.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiTransactionManager.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiTransactionManager.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiTransactionManager.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiTransactionManager.java
Outdated
Show resolved
Hide resolved
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiInstanciator.java
Outdated
Show resolved
Hide resolved
Added some small thoughts and a couple of questions, but this looks great! Thank you again for contributing! |
Did you take a look at the tests ? |
Hi @badgerwithagun ! I am a bit confused regarding my CDI Transaction implementation. I observed that :
Thank you for your help |
OK i figured out the issue. I had to use CDI instanciation mecanism in order to make the CDITransactionManager aware of any opened transaction. All seems OK and connections are closed at the end of the process |
transactionoutbox-cdi/src/main/java/com/gruelbox/transactionoutbox/CdiTransactionManager.java
Outdated
Show resolved
Hide resolved
Maybe something is not rightly implemented with the connection because I have warnings in logs |
We are benchmarking the module and there are issues with performance and connections lifecycle. This implementation was inspired by the Spring one, but obviously it is not the right angle. I will keep posting updates here |
Any luck @RomainWilbert ? |
False alert. We did some real time debug to ensure everything was OK on that part. Our issues came from elsewhere : a hardcoded timeout on a request in a DAO... |
* feat: cdi implementation * fix: PR comments * fix: cdi transaction manager instantiation to be transaction aware * Update CdiTransactionManager.java * ref: module name (quarkus) * ref: module name Co-authored-by: Romain Wilbert <romain.wilbert-ext@pole-emploi.fr> (cherry picked from commit 121f27d)
I work with Quarkus so I created a module to make transaction-outbox work with cdi-api & transaction-api.
Should work with other implentations.
I have made basic tests, feel free to add some if needed !