Save This Page
Home » commons-transaction-1.2-src » connector » [javadoc | source]
connector
public class: TestServlet [javadoc | source]
java.lang.Object
   javax.servlet.GenericServlet
      javax.servlet.http.HttpServlet
         connector.TestServlet

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

Implementation of the test servlet.
Method from connector.TestServlet Summary:
init,   service
Methods from javax.servlet.http.HttpServlet:
service
Methods from javax.servlet.GenericServlet:
destroy,   getInitParameter,   getInitParameterNames,   getServletConfig,   getServletContext,   getServletInfo,   getServletName,   init,   init,   log,   log,   service
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from connector.TestServlet Detail:
 public  void init() throws ServletException 
    init() stores the factory for efficiency since JNDI is relatively slow.
 public  void service(HttpServletRequest request,
    HttpServletResponse response) throws IOException, ServletException 
    Use the connection. All JCA connections must use the following pattern to ensure the connection is closed even when exceptions occur.