org.apache.geronimo.webservices
Class POJOWebServiceServlet
java.lang.Object
org.apache.geronimo.webservices.POJOWebServiceServlet
- All Implemented Interfaces:
- javax.servlet.Servlet
- public class POJOWebServiceServlet
- extends Object
- implements javax.servlet.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
- Version:
- $Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POJO_CLASS
public static final String POJO_CLASS
POJOWebServiceServlet
public POJOWebServiceServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Throws:
javax.servlet.ServletException
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Specified by:
getServletConfig
in interface javax.servlet.Servlet
service
public void service(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
throws javax.servlet.ServletException,
IOException
- Specified by:
service
in interface javax.servlet.Servlet
- Throws:
javax.servlet.ServletException
IOException
getServletInfo
public String getServletInfo()
- Specified by:
getServletInfo
in interface javax.servlet.Servlet
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Servlet
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.