We also noticed issues with Hibernate sessions not...
# spring
e
We also noticed issues with Hibernate sessions not surviving the entire transaction in a suspend fun
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
I always thought you cannot mix webflux stack with non-reactive stack (hibernate, jdbc)? Was I wrong?
e
If that's the case, I think we have been lucky so far and have some technical debt to take care of. 😅
😅 1
j
Yes. Transactions and hibernate rely on having a single thread per transaction by default.
s
Not supported indeed, you need to use Reactive transactions with Coroutines
🙏 2
e
thanks for the clarification 🙂