Re:Transactions

"sudesh_1" <[email protected]> Tue, 02 Apr 2002 12:53:01 -0000
Newsgroups gmane.comp.java.ejb.general
Message-ID <[email protected]>
Hi

Lock both tables explicitly first in both transactions in same order 
and then update.

For example

transaction1
commit = false
lock table1
lock table2
update table1
update table2
commit = true


transaction2
commit = false
lock table1
lock table2
update table2
update table1
commit = true


Hope this solves your problem

Sudesh