commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <>
Subject Re: [DBCP] Example of SharedPooledDataSource with JNDI
Date Wed, 09 Jun 2004 16:50:44 GMT
If you send me what you have already then maybe I can help you.
I did some debugging with the JNDI setup in Tomcat but not yet in a 
standalone program.

So if you start with the testcase then I'll take a look at it.

-- Dirk

> Where can I find an example of the use of SharedPooledDataSource with
> In my attempts at this I get an exception from the JNDI API because
> InstanceKeyDataSource (from which SharedPoolDataSource inherits the
> implementation of Referenceable) specifies in the getReference() method
> that
> InstanceKeyObjectFactory is the factory. However that is an abstract
> class and cannot be instantiated by the JNDI API implementation. I
> worked around this by extending SharedPoolDataSource to overload
> getReference() and SharedPoolDataSourceFactory to overload
> isCorrectClass() but that doesn't seem like the correct mechanism. I am
> using DriverAdapterCPDS as the connection pool datasource for
> SharedDataSource.
> A example (with binding to JNDI) would help a lot. I have gone through
> all the examples I can find but haven't seen one that actually binds
> into the JNDI.
> Thanks
> ------------
> Creighton Malet
> (925)823-1463

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message