All Examples All Jolt Examples All Jolt Servlet Examples
This example demonstrates how to use BEA Jolt to connect to TUXEDO from a WebLogic servlet.
It uses the WebLogic Server, to deliver an HTML FORM front end in a standard web-browser. Text entered by the user into the FORM is sent back to the WebLogic Server via the HTTP POST method. This is serviced by a registered WebLogic HTTP Servlet, which calls a TUXEDO service using BEA Jolt. The text received by the servlet is sent to a TUXEDO service, where it is transposed to uppercase before being returned back to the servlet. This is compiled into a dynamically generated HTML page by the servlet, then sent back to the web browser, where the uppercase version of the original text is displayed.
$ javac -d %SERVLET_CLASSES% SimpAppServlet.javaThe environment variable SERVLET_CLASSES is set when you set up your development environment.
weblogic.httpd.register.simpapp=examples.jolt.servlet.simpapp.SimpAppServlet weblogic.allow.execute.servlet.simpapp=everyone
Also, allow everyone to request HTML files via the file servlet, by adding this line:
weblogic.allow.execute.servlet.file=everyone
weblogic.system.startupClass.demojoltpoolStart=\ bea.jolt.pool.servlet.weblogic.PoolManagerStartUp weblogic.system.startupArgs.demojoltpoolStart=\ poolname=demojoltpool,\ appaddrlist=//<your_Jolt_server_URL>,\ failoverlist=//<your_Jolt_server_URL>,\ minpoolsize=1,\ maxpoolsize=3Where <your_Jolt_server_URL> is the domain name of your Jolt server.
For more information on setting up a session pool, read the Jolt for WebLogic Server User's Guide. For instructions on how to obtain and set up TUXEDO, please refer to the BEA website.
http://localhost:7001/simpapp.html
For more information about configuring Jolt Session Pools with Weblogic, see the Jolt for WebLogic Server User's Guide.
Copyright © 1998-2000 BEA Systems, Inc. All rights reserved.
Last updated 02/28/2000