Hi all,
To avoid XA overhead I prefixed some table names from project A and rolled it out to be inside the same mysql database as project B so I can use the same connection - and hope to get full atomicity etc.
Project A and B though have very different session factory configs. I have a HibernateTransactionManager configured for project B whereas A simply uses TransactionSynchronizationManager.hasResource(sessionFactoryA) OSiV style code to join with the transaction.
Does this work conceptually? I just tried a breakpoint in A, then wait, then continue and the timeout causes B to rollback, but A still commits!!?
What gives? Thanks for any help.