well, I think that is what I need.
I am currently using WebWork for our applications. It uses interceptors to recognize hibernate actions and then grab a hibernate session, start a transaction, do some logic, and then commit the transaction.
In those cases, the transaction is created from the session (session.beginTransaction()), so if I have two sessions (from the two databases), wouldn't I have two transactions? Is there a way to start the transaction first, then do all the hibernate logic? If that is what JTA is for, I obviously needed to be pointed down the newbie path for JTA.
|