ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: how can i use mutiple transction in thread?
Date Wed, 05 Jul 2006 14:38:53 GMT
iBATIS does not support nested transactions like this.

Jeff Butler


On 7/3/06, Hoyoung Hwang <hwangma@gmail.com> wrote:
>
>  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