ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "De Gaetano Giuseppe" <degaet...@PITAGORA.IT>
Subject R: SqlMapClient multithread applications
Date Fri, 05 Jan 2007 15:39:28 GMT
Hi, may be I wasn't clear enough.

With concurrency I meant2 threads each doing the following operations:
1. Start transaction.
2. insert row
3. insert another row
4. commit/rollback transaction

In this situation is the transaction isolation guaranteed?

> Is there any best practice? == speed up application end avoid loading every time the
same config files

-----Messaggio originale-----
Da: larry.meadors@gmail.com [mailto:larry.meadors@gmail.com] Per conto di Larry Meadors
Inviato: venerdì 5 gennaio 2007 16.19
A: user-java@ibatis.apache.org
Oggetto: Re: SqlMapClient multithread applications

On 1/5/07, De Gaetano Giuseppe <degaetano@pitagora.it> wrote:
> If the application is multithread and each thread uses the same client will
> I have some problem?

Should be fine.

> Is the iBatis engine handling the concurrency or should I care?

What type of concurrency? If two threads update the same row in the
database, the last one in wins. iBATIS does not and will not likely
ever deal with that sort of thing.

> Is there any best practice?

Sorry if i am being dense, but for what?


View raw message