The following methods are defined as part of the javax.servlet.ServletContextListener interface:
Notification that the Web application is ready to process requests. Place code in this method to see if the created context is for your Web application and if it is, allocate a database connection and store the connection in the servlet context.
Notification that the servlet context is about to shut down. Place code in this method to see if the created context is for your Web application and if it is, close the database connection stored in the servlet context.
The following methods are defined as part of the javax.servlet.ServletRequestListener interface:
A request is defined as coming into scope when it is about to enter the first filter in the filter chain that processes the request.
A request is defined as going out of scope when it exits the last filter in its filter chain.
The following listener interfaces are defined as part of the javax.servlet package:
The following filter interface is defined as part of the javax.servlet package:
The following event classes are defined as part of the javax.servlet package:
The following interfaces are defined as part of the javax.servlet.http package:
The following event class is defined as part of the javax.servlet.http package: