JTA with reactive Panache not working properly? #43800
-
Hi, I was looking into io.quarkus.mongodb.panache.common.reactive.Panache.withTransaction(..) method:
There as you can see we are waiting for
Does this means that this Are my thoughts correct? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
/cc @FroMage (panache), @loicmathieu (panache) |
Beta Was this translation helpful? Give feedback.
-
Hi, No, sorry, but the code is correct not your thoughts ;)
The |
Beta Was this translation helpful? Give feedback.
Hi,
No, sorry, but the code is correct not your thoughts ;)
call()
like all other operation on Uni returns a new Uni, all operations are inside the chain of Unis which will be resolved by Quarkus as long as you subscribe to the last Uni in the chain. You usually subscribe to it by returning it to the Quarkus runtime (inside a REST endpoint for example).The
commitTransaction
method returns a Uni that will be passed to the chain of Unis by thecall()
method.