Join Slack
Powered by
We also noticed issues with Hibernate sessions not...
# spring
e
Emil Kantis
11/30/2023, 10:48 PM
We also noticed issues with Hibernate sessions not surviving the entire transaction in a suspend fun
Emil Kantis
11/30/2023, 10:57 PM
Tried to reproduce it but I managed to get issues even with 3.1.5. Anyone see what I'm doing wrong?
https://github.com/Kantis/kxs-repro/blob/63dfab0b37db52221f7481ef7bf643366539d394/src/main/kotlin/SampleService.kt#L28
r
Robert Jaros
12/01/2023, 6:26 AM
I always thought you cannot mix webflux stack with non-reactive stack (hibernate, jdbc)? Was I wrong?
e
Emil Kantis
12/01/2023, 8:56 AM
If that's the case, I think we have been lucky so far and have some technical debt to take care of. 😅
😅 1
j
Jacob
12/01/2023, 1:47 PM
Yes. Transactions and hibernate rely on having a single thread per transaction by default.
s
sdeleuze
12/04/2023, 7:57 PM
Not supported indeed, you need to use Reactive transactions with Coroutines
🙏 2
e
Emil Kantis
12/04/2023, 7:59 PM
thanks for the clarification 🙂
8
Views
Open in Slack
Previous
Next