Can I embed transactions from two different data sources so that anything in one that fails will rollback everything for both?
t
Toshihiro Nakamura
04/16/2024, 12:15 PM
Komapper’s transaction feature does not support global transactions, but I think it can be achieved by integrating with the Java Transaction API (JTA).
d
dave08
04/16/2024, 12:21 PM
I was actually thinking of trying to catch all exceptions and rethrowing them in both connection's transaction blocks, would that work?
t
Toshihiro Nakamura
04/16/2024, 12:44 PM
In most cases it works well, but it will not work correctly in edge cases.
d
dave08
04/16/2024, 12:46 PM
I guess it's better than nothing, unless you have some better solution... JTA isn't for r2dbc is it?