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: c3p0 vs dbcp?
Date Thu, 01 Mar 2007 04:14:35 GMT
Absolutely.  You can use any DataSource implementation you like.  All you
need to do is build a DataSourceFactory and pass the fully qualified
classname (or type alias) into the datasource type in the <dataSource>
element of your SqlMapConfig.xml

public interface DataSourceFactory {
  public void initialize(Map map);
  public DataSource getDataSource();
}

Clinton

On 2/28/07, JoeSmith < fidwork@gmail.com> wrote:
>
> Is it possible to use the c3p0 datasource/connection pool with
> iBatis? Does anyone know how this package compares to dbcp? Are there any
> known issues or problems?

Mime
View raw message