examples.ejb.basic.beanManaged
Class Servlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--examples.ejb.basic.beanManaged.Servlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class Servlet
- extends javax.servlet.http.HttpServlet
This servlet is a program similar to that in the
Client
example.
The servlet must be registered in the web.xml deployment descriptor
of the Examples Web Application
of the WebLogic Server:
Call this servlet using an URL such as
http://localhost:7001/examplesWebApp/beanManaged
- Author:
- Adapted by WebLogic, Inc.; adaptions copyright (c) 1998 by WebLogic, Inc. All Rights Reserved.,
Adapted by BEA Systems, Inc.; adaptions copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.
Field Summary |
(package private) static java.lang.String |
accountId
|
Method Summary |
static javax.naming.Context |
getInitialContext()
Gets an initial context for the current user, password and url. |
java.lang.String |
getServletInfo()
Basic servlet information. |
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Builds an HTML page, finds the beanManaged home,
creates beans and calls methods on the bean's remote interfaces. |
Methods inherited from class javax.servlet.http.HttpServlet |
, doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
accountId
static java.lang.String accountId
Servlet
public Servlet()
getInitialContext
public static javax.naming.Context getInitialContext()
throws java.lang.Exception
- Gets an initial context for the current user, password and url.
- Returns:
- Context
- Throws:
java.lang.Exception
- if there is
an error in getting the Context
getServletInfo
public java.lang.String getServletInfo()
- Basic servlet information.
- Overrides:
getServletInfo
in class javax.servlet.GenericServlet
service
public void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
- Builds an HTML page, finds the beanManaged home,
creates beans and calls methods on the bean's remote interfaces.
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Parameters:
req
- HttpServletRequestres
- HttpServletResponse- Throws:
java.io.IOException
- if there is an IO error
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.