All Examples  All EJB Examples  This Package

Class examples.ejb.basic.beanManaged.Servlet

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----examples.ejb.basic.beanManaged.Servlet

public class Servlet
extends HttpServlet
This servlet is a program similar to that in examples.ejb.basic.beanManaged.Client.

The servlet must be registered in the weblogic.properties file of the WebLogic Server:

weblogic.httpd.register.beanManaged=examples.ejb.basic.beanManaged.Servlet weblogic.allow.execute.weblogic.servlet.beanManaged=servletUser weblogic.password.servletUser=servletUserPassword

Call this servlet using an URL such as

http://localhost:7001/beanManaged?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.

Constructor Index

 o Servlet()

Method Index

 o getServletInfo()
Basic servlet information.
 o service(HttpServletRequest, HttpServletResponse)
Builds an HTML page, finds the beanManaged home, creates beans and calls methods on the bean's remote interfaces.

Constructors

 o Servlet
 public Servlet()

Methods

 o service
 public void service(HttpServletRequest req,
                     HttpServletResponse res) throws IOException
Builds an HTML page, finds the beanManaged home, creates beans and calls methods on the bean's remote interfaces.

Parameters:
req - HttpServletRequest
res - HttpServletResponse
Throws: IOException
if there is an IO error
Overrides:
service in class HttpServlet
 o getServletInfo
 public String getServletInfo()
Basic servlet information.

Overrides:
getServletInfo in class GenericServlet

All Examples  All EJB Examples  This Package