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=//beademo1.beasys.com:8000,\ failoverlist=//beademo1.beasys.com:8000,\ minpoolsize=1,\ maxpoolsize=3Where beademo1.beasys.com:8000 is the domain name of a public Jolt server that's hosted by BEA. You can access this server to try out the example.
For more information on setting up a session pool, read the Administrators Guide, Setting up Jolt for WebLogic. For instructions on how to obtain and set up TUXEDO, please refer to the BEA website.
http://localhost:7001/simpapp.html
This example is described more detail in the Using Jolt for WebLogic developer's guide.
For more information about configuring Jolt Session Pools with Weblogic, see the Jolt for WebLogic administration guide.
Copyright © 1998-1999 BEA WebXpress, Inc. All rights reserved.
Last updated 09/13/1999