You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/08/26 16:26:32 UTC

Inner transaction and join() [Re post]

All,

 

 

Should i put a transaction.join() call each time I use an inner transaction.

 

Tx1.begin()

 

         Tx2.begin()

         Tx2.commit()

 

Tx1.join()    <------------------------- Oblige ????????

 

Tx1.commit()

 

 

In the commit, a Transaction.close() is done on the current thread, so is it
necessary to re-attach the mother transaction to the current thread ?

 

It works without, but I have some instabilities,  it is safer and is it the
properly way ?

 

 

Thanx !!!