All Examples All Jolt Examples All Jolt Servlet Examples
Package examples.jolt.servlet.bankapp
about this example
This example illustrates how JHTML and the PageCompileServlet servlet can
be used with Jolt for WebLogic to access services in TUXEDO. It shows how
to:
- Use JNDI to obtain a JOLT session pool manager
- Retrieve a session pool by name
- Invoke a TUXEDO service
- Process the result set
how to use this example
Prerequisites
To use this example you must have:
- Installed WebLogic version 3.1.5 or higher.
- Installed TUXEDO 6.x with the BankApp sample running.
Setting up the example
- Copy the files in this directory to your WebLogic document root. The default document root is the
myserver/public_html directory
in WebLogic home.
-
Edit the WebLogic properties file to set up a session pool to your
Jolt server. You'll need to add a registration for a startup class to
create the session pool, and a shutdown class to clean up. The
properties file is shipped with sample registrations for the bankapp
example that you can modify and uncomment.
-
In the startup class registration, modify "appaddrlist" and
"failoverlist" with the proper Jolt server hosts and ports.
Please see the Jolt for WebLogic Server User's Guide for information on how to set up a Jolt Server.
You will need to add a Jolt connection pool that connects to your
Jolt Server by adding to your
weblogic.properties file:
# Demo Jolt pool
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=3
weblogic.system.shutdownClass.demojoltpoolStop=\
bea.jolt.pool.servlet.weblogic.PoolManagerShutDown
weblogic.system.shutdownArgs.demojoltpoolStop=\
poolname=demojoltpool
- Enable JHTML. To do so, check in the WebLogic properties file that the
PageCompileServlet has been registered, and that the compiler attribute is set to the full pathname of a working
java compiler. For more information on configuring JHTML, see the
Administrators Guide, Setting WebLogic properties.
Running the example
To access the TUXEDO sample banking services through Jolt, launch
this page in your favorite browser:
http://WebLogicURL:port/tellerForm.html
where WebLogicURL is the host of the WebLogic Server and
port is the
port at which WebLogic is listening for login requests. If you are running
WebLogic locally, you can use this URL:
http://localhost:7001/tellerForm.html
Select any of the services and you will be asked for an account number or
numbers on which to perform the transaction. Choose any valid account number
between 10000 and 10019, and enter a dollar ammount for the transaction.
there's more...
Make sure you have read the Developers Guide Jolt for WebLogic Server User's Guide for detailed
information on setup and configuration. Other guides that you may
find useful in working on this example include the WebLogic Developers
Guides Using WebLogic JHTML and Using WebLogic HTTP Servlets.
And if you need help
setting up WebLogic for JHTML or HTTP, read the Administrators Guide, Setting up WebLogic as an HTTP server.
Copyright (c) 1998-2000 by
BEA Systems, Inc. All Rights Reserved.
Last updated
2/28/2000