Order the Book

coreservlets
Class ConnectionPoolServlet2

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--coreservlets.ConnectionPoolServlet
                    |
                    +--coreservlets.ConnectionPoolServlet2

public class ConnectionPoolServlet2
extends ConnectionPoolServlet

A variation of ConnectionPoolServlet that uses only a single connection, queueing up all requests to it. Used to compare timing results.

Taken from Core Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. © 2000 Marty Hall; may be freely used or adapted.

See Also:
Serialized Form

Constructor Summary
ConnectionPoolServlet2()
           
 
Method Summary
protected  int initialConnections()
          Override this in subclass to change number of initial connections.
protected  int maxConnections()
          Override this in subclass to change maximum number of connections.
 
Methods inherited from class coreservlets.ConnectionPoolServlet
destroy, doGet, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolServlet2

public ConnectionPoolServlet2()
Method Detail

initialConnections

protected int initialConnections()
Description copied from class: ConnectionPoolServlet
Override this in subclass to change number of initial connections.
Overrides:
initialConnections in class ConnectionPoolServlet

maxConnections

protected int maxConnections()
Description copied from class: ConnectionPoolServlet
Override this in subclass to change maximum number of connections.
Overrides:
maxConnections in class ConnectionPoolServlet

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive