-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric,
Eric B. wrote: > I'm happy to test out an validate that theory, but based on what I've seen > so far, this isn't the case at all. Try deploying nothing in your application but the following JSP. Browse to it, and intentionally leak a connection. Watch your catalina.out file to see if an error message occurs ~20 seconds later. If you see such messages, Chuck's suggestion that you have some runaway looping code are probably something to look into. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- AbandonConnection.jsp Checks-out a JDBC connection and intentionally leaks it, for testing of JDBC connection pool abandonment configuration. Copyright 2004 Chris Schultz - www.christopherschultz.net Do whatever you want with this file. Enjoy! - --> <%...@page language="Java" isErrorPage="false" import=" java.sql.*, java.util.*, java.io.PrintWriter, javax.naming.Context, javax.naming.InitialContext, javax.naming.NamingException, javax.sql.DataSource " %> <%! /** * Gets a JDBC connection. This implementation uses JNDI to obtain a * connection. Feel free to substitute your own. */ Connection getConnection() throws SQLException, javax.naming.NamingException { Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(/* JNDI name */); if(null == ds) throw new NamingException("Cannot obtain DataSource"); return ds.getConnection(); } %> <% Connection conn = getConnection(); %> <html> <body> <p>Got connection: <%= conn %></p> <p>Now, I refuse to give it away!</p> </body> </html> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmJ32sACgkQ9CaO5/Lv0PCaiACgs7NLWRf48A79e8s4J+AMGOmC jioAn2st634zS4MbLAVQ/gmLNkCqA5nx =aLa5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org