1. ThreadLocal + java.sql.Connection + servlet filter = 2009? stackoverflow.comI am writing some servlets with plain old mostly-JDBC patterns. I realized that I have several objects that would like to share a single transaction, and I'd like to enforce that ... |
2. How to close a HTTP connection from the HttpServlet stackoverflow.comI'm running a servlet in Tomcat 6.0.26. The servlet accepts file upload from the client by HTTP POST. I'd like to stop the file uploading from the HttpServlet side. I tried ... |
3. How to manage DB connections in a Java Servlet Filter? stackoverflow.comI'm writing a traffic auditing servlet filter. I need to query the database for every HTTP request. There is no connection pool. (I'm adding this filer to the existing application). I created a ... |