org.apache.geronimo.webservices
Class POJOWebServiceServlet

java.lang.Object
  extended by org.apache.geronimo.webservices.POJOWebServiceServlet
All Implemented Interfaces:
Servlet

public class POJOWebServiceServlet
extends Object
implements Servlet

Delegates requests to a WebServiceContainer which is presumably for a POJO WebService Nothing stopping us from using this for EJBs or other types of webservices other than it is more than we need. EJB webservices use the JettyEJBWebServiceContext.

From a 10,000 foot view the Jetty architecture has: Container -> Context -> Holder -> Servlet

A Container has multiple Contexts, typically webapps A Context provides the JNDI, TX, and Security for the webapp and has many Holders A Holder simply wraps each Servlet

The POJO Web Service architecture on Jetty looks like this: Container -> WebApp Context -> JettyPOJOWebServiceHolder -> POJOWebServiceServlet

The EJB Web Service architecure, on the other hand, creates one Context for each EJB: Container -> JettyEJBWebServiceContext


Field Summary
static String POJO_CLASS
           
 
Constructor Summary
POJOWebServiceServlet()
           
 
Method Summary
 void destroy()
           
 ServletConfig getServletConfig()
           
 String getServletInfo()
           
 void init(ServletConfig config)
           
 void service(ServletRequest servletRequest, ServletResponse servletResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POJO_CLASS

public static final String POJO_CLASS
Constructor Detail

POJOWebServiceServlet

public POJOWebServiceServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Throws:
ServletException

getServletConfig

public ServletConfig getServletConfig()
Specified by:
getServletConfig in interface Servlet

service

public void service(ServletRequest servletRequest,
                    ServletResponse servletResponse)
             throws ServletException,
                    IOException
Specified by:
service in interface Servlet
Throws:
ServletException
IOException

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface Servlet

destroy

public void destroy()
Specified by:
destroy in interface Servlet


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