org.apache.geronimo.webservices
Class POJOWebServiceServlet
java.lang.Object
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
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(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 © 2006 Apache Software Foundation. All Rights Reserved.