ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Goodin" <brandon.goo...@gmail.com>
Subject Re: Transaction Performance Issue
Date Thu, 17 Apr 2008 05:52:46 GMT
If you are using an external transaction manager it is completely up to you
to manage the transactions. iBATIS utilizes the connection that is handed to
it by your external transaction manager. What is the external transaction
manager that is being used?

Brandon

On Thu, Apr 17, 2008 at 12:41 AM, Vannel <vadriewyn@hotmail.com> wrote:

>
> can anyone tell me what the scope of a transaction is?
>
> -----
>
> try {
>  //execute sql
>  int ret = insert(...);
>
>  if (ret>0) {
>    //execute some other sql
>    update(...);
>  }
> }
> 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.
>
>

Mime
View raw message