com.acme
Class JNDITest
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.acme.JNDITest
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class JNDITest
- extends HttpServlet
JNDITest
Use JNDI from within Jetty.
Also, use servlet spec 2.5 resource injection and lifecycle callbacks from within the web.xml
to set up some of the JNDI resources.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
JNDITest
public JNDITest()
setMyDatasource
public void setMyDatasource(DataSource ds)
setMyDatasource2
public void setMyDatasource2(DataSource ds)
setMyDatasource99
public void setMyDatasource99(DataSource ds)
init
public void init(ServletConfig config)
throws ServletException
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
IOException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
doMail
public void doMail(String mailTo,
String mailFrom)
throws Exception
- Throws:
Exception
doTransaction
public void doTransaction(ServletOutputStream out,
boolean doCommit)
throws Exception
- Throws:
Exception
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.