Hibernate Reactive Transactions with Reactive REST Client #2083
-
When using Hibernate Reactive with vertx-mysql-client and have service method annotated with transaction, vert.x thread is used. But, if in this execution chane, we need to call Reactive REST client, this call will switch to different thread (not vert.x), and exception will be thrown on callback, as new session will be created instead of re-using the previously existing session residing in context.
How should we work with Reactive REST Client and Hibernate Reactive Transactions? Here is the repository and test method in it, that will reproduce issue: https://github.com/nenad-kosanovic-tam/Hibernate-Reactive-Transactions-with-Reactive-REST-Client Issue is reproducable by running test ThingServiceTest#createWithRestCall_should_fail. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
please provide an example that reproduces the issue |
Beta Was this translation helpful? Give feedback.
-
Please let me know if you need any more details on this topic? |
Beta Was this translation helpful? Give feedback.
-
Any update here? |
Beta Was this translation helpful? Give feedback.
It's a problem in Hibernate Reactive hibernate/hibernate-reactive#1667