org.apache.geronimo.samples.calculator
Class CalculatorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.geronimo.samples.calculator.CalculatorServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class CalculatorServlet
extends HttpServlet

A simple servlet that will reference a bean and perform it's operations. Note that a stateful session bean must be declared at the type level whereas a stateless session bean may be declared at any level. The ejb container will route every request to different bean instances.

See Also:
Serialized Form

Constructor Summary
CalculatorServlet()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse resp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorServlet

public CalculatorServlet()
Method Detail

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse resp)
           throws ServletException,
                  IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.