ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoyoung Hwang" <hwan...@gmail.com>
Subject how can i use mutiple transction in thread?
Date Tue, 04 Jul 2006 01:19:06 GMT
i can't use muitple transaction.
how can i use mutiple transction?

i don't use daoManager. just using SqlMap.

example.

sqlmapclient.startTransaction();
sqlmapclient.insert("table.insert",table);
newTrans = sqlmapclient.openSession();
newTrans.startTransaction();
newTrans.insert("logtable.insert",logtable);
newTrans.commitTransaction();
sqlmapclient.delete("table.delete",null);
sqlmapclient.commitTransaction();

please let me know.

Mime
View raw message