example.entity.home
Class HomeServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--example.entity.home.HomeServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HomeServlet
extends javax.servlet.GenericServlet

Client using the entity home call for a hello and an add call.

See Also:
Serialized Form

Field Summary
private  Home home
          Caches the home interface from the JNDI lookup.
 
Fields inherited from class javax.servlet.GenericServlet
config
 
Constructor Summary
HomeServlet()
           
 
Method Summary
 void init()
          On init, load the Home from the JNDI context.
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Prints the result of the hello call and the add call.
 
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

home

private Home home
Caches the home interface from the JNDI lookup.
Constructor Detail

HomeServlet

public HomeServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
On init, load the Home from the JNDI context.
Overrides:
init in class javax.servlet.GenericServlet

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Prints the result of the hello call and the add call.
Overrides:
service in class javax.servlet.GenericServlet