Please I have a pool of connection to an Oracle DataBase, and several
JSP sharing that pool of connection. All the
servlet in my server ask for a new Connection from that pool every time a user does a query. But I want to close the connection everytime the user press stop in the browser or when some timeout has expired. Can anyone give me some ideas how to detect that?
I am using a class which manages the pool of connection, store that class like a ServletContext attribute, and every time any
java servlet needs a new connection that class manage the opening of the new connection, and give the new connection to the servlet. So in the case somebody cancel the search, how can I detect that in the servlet (or in the pool connections class) and cancel the connection.
Please any note, paper or advice will be very helpful
Thanks.