tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Wichman <h...@trimm.nl>
Subject connection pool recreated
Date Mon, 28 Jul 2003 14:44:33 GMT
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


Mime
View raw message