Re: static SqlMapClient and transaction isolation problem

2009-10-22 Thread Nathan Maves
Ibatis 2.x does use ThreadLocal to handle the transactions. With ibatis 3 you need to handle this on your own right now but we have been playing with a few ways to use ThreadLocal with it as well. I actually have a pretty clean working webapp using it. On Thu, Oct 22, 2009 at 9:09 AM, Rick.Wellm

Re: static SqlMapClient and transaction isolation problem

2009-10-22 Thread Larry Meadors
On Thu, Oct 22, 2009 at 9:03 AM, User 080701 wrote: > > If I create a static SqlMapClient to service many threads, does ibatis > guarantee transaction isolation ? yes. > e.g. If one thread start the transaction and not commit, >      if another thread start the transaction using the same sqlMapC

RE: static SqlMapClient and transaction isolation problem

2009-10-22 Thread Rick . Wellman
Unfortunately I cannot dive into the many details of iBatis and transactions but here is how I would answer your question: 1) You almost assuredly want to create a single static SqlMapClient to service many threads. 2) I am pretty sure that iBatis uses ThreadLocal to isolate transactions from dif