db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl <thomas.vand...@tewisoft.de>
Subject Re: JndiDataSourceFactory
Date Thu, 07 Oct 2004 12:50:58 GMT
John McNally wrote:

> The reason it is not cached is that the DataSource/JNDI concept allows 
> an adminstration application to change the DataSource that is bound to a 
> name and an application using that name would automatically start using 
> a different pool of connections.

Ok. I propose the following patch. It creates a very simple "cache" to 
keep the DataSource object for a configurable time (default 0) and then 
performs a new lookup. Does this look reasonable?

Bye, Thomas.

View raw message