commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Speh <rws...@yahoo.com>
Subject RE: DBCP PoolingDataSource
Date Wed, 16 Jan 2002 16:29:37 GMT
So it looks like I need to extend and implement 
BaseKeyedPoolableObjectFactory.

Does that seem correct?

Thanks,
Randy Speh
--- "Waldhoff, Rodney" <rwaldhof@us.britannica.com>
wrote:
> > Are there plans to make the PoolingDataSource
> support
> > the getConnection(user, pwd) method?
> 
> It's a little bit tricky since it's the
> ObjectPool/ConnectionFactory that
> actually creates the Connections, so there's
> currently no direct way for the
> PoolingDataSource to pass the arguments down to the
> DataSourceConnectionFactory.  One way to do it would
> be to use a
> KeyedObjectPool instead of ObjectPool, and pass the
> username/password pair
> (or in the case of the PoolingDriver, the Properties
> object) as the key.
> 
> I might play around with that if I get a chance, but
> it'll probably be a few
> days before I do, so don't let that stop you if
> you've got an itch for it.
> 
> - Rod
> 
> > Thanks,
> > Randy Speh
> 
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message