All Examples All EJB Examples This Package
Class examples.ejb.basic.containerManaged.Servlet
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----examples.ejb.basic.containerManaged.Servlet
- public class Servlet
- extends HttpServlet
This servlet is a program similar to that in
examples.ejb.basic.containerManaged.Client.
The servlet must be registered in the weblogic.properties
file
of the WebLogic Server:
weblogic.httpd.register.containerManaged=examples.ejb.basic.containerManaged.Servlet
weblogic.allow.execute.weblogic.servlet.containerManaged=servletUser
weblogic.password.servletUser=servletUserPassword
Call this servlet using an URL such as
http://localhost:7001/containerManaged?user=servletUser&password=servletUserPassword
where you've substituted appropriate values for servletUser and servletUserPassword
in both the weblogic.properties
file and the URL.
- Author:
- Adapted by WebLogic, Inc.; adaptions copyright (c) 1998 by WebLogic, Inc. All Rights Reserved.,
Adapted by BEA WebXpress; adaptions copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved.
-
Servlet()
-
-
getInitialContext()
- Gets an initial context for the current user, password and url.
-
getServletInfo()
- Basic servlet information.
-
service(HttpServletRequest, HttpServletResponse)
-
- Builds an HTML page, finds the containerManaged home,
creates beans and calls methods on the bean's remote interfaces.
Servlet
public Servlet()
service
public void service(HttpServletRequest req,
HttpServletResponse res) throws IOException
- Builds an HTML page, finds the containerManaged home,
creates beans and calls methods on the bean's remote interfaces.
- Parameters:
- req - HttpServletRequest
- res - HttpServletResponse
- Overrides:
- service in class HttpServlet
getServletInfo
public String getServletInfo()
- Basic servlet information.
- Overrides:
- getServletInfo in class GenericServlet
getInitialContext
public static Context getInitialContext() throws Exception
- Gets an initial context for the current user, password and url.
- Returns:
- Context
- Throws: Exception
- if there is
an error in getting the Context
All Examples All EJB Examples This Package