ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: Multi-threading and Connections
Date Wed, 24 Aug 2005 16:00:38 GMT
On 8/24/05, Rafiq, Adnan <arafiq@carreker.com> wrote:
> 1. the process will spawn multiple threads and each thread needs its 
> own connection. how is this handled in ibatis? does each thread 
> automatically get its own connection or do I need to write more code?

That is the default behavior, yes.

> 2. the process commits/rollbacks at the very end by default however, 
> some batch processes may do commits in the middle of processing 
> (e.g. in a for-loop) I believe I can just issue commits using the iBatis 
> API. is this correct?

Not sure what you mean here..you can commit using the sqlmap api.

> 3. I plan to use a Simple JDBC datasource as TX manager. Is this the 
> best approach or are there better alternatives out there?

Should work ok.

> -----Original Message-----
> From: Graeme J Sweeney [mailto:ibatis.user@gjsweeney.com]
> Sent: Wednesday, August 24, 2005 10:23 AM

PLEASE do not hijack other threads like this..


View raw message