Thanks for the reply. 

I  configured server.xml including:
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
But I still have the casting problem.

Regards,

Meichun

On Mon, 15 Jul 2002, Maier Holger, ITS-AKIS wrote:

> Hi,
> I am also struggling with ConnectionPool
> at the moment. I have an Informix DB to connect to.
> 
> > It works if I use this:
> > org.apache.commons.dbcp.BasicDataSource ds=
> >          (org.apache.commons.dbcp.BasicDataSource) 
> > envCtx.lookup("jdbc/ospreyDb");
> >
> > Any ideas? Thanks a lot in advance!
> How is your configuration of the DS in your server.xml?
> Did you define a factory for your DataSource,
> i.e. 
> <parameter>
>   <name>factory</name>
>   <value>com.informix.jdbcx.IfxDataSourceFactory</value>
> </parameter>
> 
> for DBCP the value is probably
> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
> 
> Then you can probaly do without defining
> > org.apache.commons.dbcp.BasicDataSource ds
> and using DataSource ds instead.
> 
> Hope that helps,
> Cheers
> Holger
> 
> -----------------------------------------------------
> Holger Maier      Tel.:  (06831) 47-3497
> ITS-AKIS          eMail: [EMAIL PROTECTED]
> 
> AG der Dillinger Hüttenwerke
> Postfach 1580
> 66748 Dillingen
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 

-- 
Meichun Li
Ibiblio.org
919-962-5646


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to