example.cmp.map
Class ClientServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--example.cmp.map.ClientServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ClientServlet
extends javax.servlet.http.HttpServlet

A client to illustrate EJB managed identifying relationships and compound primary keys.

See Also:
Serialized Form

Field Summary
(package private)  CourseHome courseHome
           
(package private)  GradeHome gradeHome
           
(package private)  StudentHome studentHome
           
 
Fields inherited from class javax.servlet.GenericServlet
config
 
Constructor Summary
ClientServlet()
           
 
Method Summary
 void init()
          Load the EJB Home objects one.
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Print the statistics for all the students.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, encodeBase64, generateETag, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

studentHome

StudentHome studentHome

courseHome

CourseHome courseHome

gradeHome

GradeHome gradeHome
Constructor Detail

ClientServlet

public ClientServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Load the EJB Home objects one.
Overrides:
init in class javax.servlet.GenericServlet

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws java.io.IOException,
                    javax.servlet.ServletException
Print the statistics for all the students.
Overrides:
service in class javax.servlet.http.HttpServlet