ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abdullah Kauchali <abdullah.kauch...@isanusi.com>
Subject Re: How does iBatis know which connection object to use from a pool?
Date Wed, 07 Feb 2007 13:05:53 GMT
From:       Larry Meadors [lmeadors@apache.org]:
>All connectins and transactions are managed using thread local
>storage, so each thread has it's own connection, etc..

(Thanks Larry!)

Ok.  Understood.  So, each time a new thread that uses SqlMapClientImpl is spawned, a Connection
object is removed from the pool and remains with the thread local instance of SqlMapClientImpl
until the thread is finished (or just before it), at which point the Connection object is
returned to the pool?

Is there any checking of active transactions on Connection objects before getting it from
and after putting it back into the pool?

Kind regards,

A





Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message