ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vannel <vadrie...@hotmail.com>
Subject Re: Transaction Performance Issue
Date Thu, 17 Apr 2008 05:41:05 GMT

can anyone tell me what the scope of a transaction is?


try {
  //execute sql
  int ret = insert(...);
  if (ret>0) {
    //execute some other sql
catch {
  //catch errors


in the above scenario, are there 2 transactions (1 for insert, 1 for
update)..? or is it considered 1 transaction within a try-catch? if i am
using an external transactionmanager, where does the commit come in? i don't
have anything in my EJB that controls transactions. In this case, how is
iBATIS handling the commits?
View this message in context: http://www.nabble.com/Transaction-Performance-Issue-tp16583884p16739287.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message