On Fri, 15 Mar 2002, Lev Assinovsky wrote:

> Date: Fri, 15 Mar 2002 00:02:50 +0300
> From: Lev Assinovsky <[EMAIL PROTECTED]>
> Reply-To: Jakarta Commons Developers List <[EMAIL PROTECTED]>
> To: Jakarta Commons Developers List <[EMAIL PROTECTED]>
> Subject: Re: [dbcp] Works with JNDI, but some remarks...
>
> Craig, the only problem here
> whenever you lookup context the new pool is created.
> My goal is to have one pool for set of applications.
>

That is no longer true in more recent Tomcat code (or in the HEAD branch)
-- the pool is created only once and then bound to the JNDI name so that
the same instance is returned each time.

In Tomcat 4.0.x, you still end up with one pool per webapp.  In the HEAD
branch (that will eventually become Tomcat 4.1) there is the concept of
"Global JNDI Resources" that can be shared across multiple webapps, via
the use of a <ResourceLink> element instead of <ResourceParams> for the
webapp's <Context>.  In this scenario, if multiple webapps link to the
same global data source, they will all be sharing it.

Craig


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

Reply via email to