Hi!
My system is using Java 1.4 and connect to DB2 UDB v8.1.1.89 by JDBC driver type 4.
I have set isolation level = REPEATABLE_READ in Java and execute "SELECT XX FOR UPDATE", I found there is deadlock when two concurrent transaction read/update same record. While 2nd transaction is waiting for the record, system through exception once 1st transaction committed the transaction! It is expected 2nd transaction can resume to get the record instead of deadlock. Then, I do not set isolation level and execute "SELECT XX FOR UPDATE WITH RS", the concurrent transactions can be processed without deadlock.
Do anyone know that any problem with isolation level in Java? Is REPEATABLE_READ really equivalent to "WITH RS"?
Thanks!