Re: NullPointerException/Connection pool gets exhausted very quickly

2003-07-27 Thread Anton Tagunov
Hello Lior! LS with conn.close() at the bottom of each page conn.close() at the bottom not enough, what you need is conn= .. try{ }finally{ conn.close(); } LS and initCtx.close() to release the connections has nothing to do with closing connections -Anton

NullPointerException/Connection pool gets exhausted very quickly

2003-07-21 Thread Lior Shliechkorn
Hi, I created a Tomcat connection pool (4.1.18/Win2k) which gets exhausted fairly quickly if a user refreshes a page a few times. I have all the pages with the following code:p - Context initCtx = new InitialContext(); Context envCtx = (Context)