All Examples All EJB Examples This Package
examples.ejb.basic.beanManaged.Servlet
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.
public Servlet()
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException
req
- HttpServletRequest
res
- HttpServletResponse
public java.lang.String getServletInfo()
public static javax.naming.Context getInitialContext() throws java.lang.Exception
All Examples All EJB Examples This Package