tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Curwen" <gb_...@gb-im.com>
Subject RE: connection pool recreated
Date Mon, 28 Jul 2003 14:47:26 GMT
Didn't know you were going to start a new thread.. see my question under
the previous one.  The DataSource in your code is NOT "the pool".

> -----Original Message-----
> From: Hans Wichman [mailto:hans@trimm.nl] 
> Sent: Monday, July 28, 2003 9:45 AM
> To: tomcat-user@jakarta.apache.org
> Subject: connection pool recreated
> 
> 
> Hi,
> this is a repost of an earlier post, which I hope is a bit 
> clearer. Why, if I run:
>          Context ctx = new InitialContext();
>          if(ctx == null ) throw new ServletException("Boom - 
> No Context");
>          ds =
>            (DataSource)ctx.lookup("java:comp/env/jdbc/SEDDB");
> under tomcat 4.0.1 is a NEW DataSource object returned 
> everytime? I thought the idea was to have one pool created on 
> context load that can be 
> accessed through the initial context,
> but instead a new db pool is returned after each such call...
> 
> Hope someone can help...
> 
> Greetz
> Hans
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message