tomcat-users mailing list archives

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message