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:[EMAIL PROTECTED] > Sent: Monday, July 28, 2003 9:45 AM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
