ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: ibatis db pool or dbcp
Date Tue, 20 Jan 2009 13:37:10 GMT
Yes, they're both fine for production.  iBATIS SimpleDataSource has been
around since iBATIS 1.0 and has changed very little (but it does get a major
facelift in iBATIS 3.0).  The difference between the iBATIS SimpleDataSource
and most others is that it's a synchronous datasource.  That is, it does not
spawn reaper threads or manage the pool with anything other than the current
thread.  Overdue, stale or invalid connections are dealt with at the point
of request.  For some this is an advantage, for others, it's not.  IMHO, the
fewer threads the better... the work has to happen somewhere, so why not the
current thread?  :-)


On Mon, Jan 19, 2009 at 8:45 AM, Rick <rickcr@gmail.com> wrote:

> On Sun, Jan 18, 2009 at 2:22 PM, Zsolt Koppany <zkoppanylist@intland.com>
> wrote:
> > Hi,
> >
> > which database pool is recommended for production usage? The pool shipped
> > with ibatis or dbcp?
> >
> > We use ibatis
> I'm curious about this also. I heard the ibatis common pool is fine
> for production. Are you better off using dbcp or one that is provided
> by a container?- I don't really know, and would be interested on
> thoughts by those that know a heck of a lot more about it than me.

View raw message