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. BEA host a Jolt
server for this example that you can access using the address in the default
registration below. Add, or uncomment this registration in your
weblogic.properties file.
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=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've read the Administrators Guide Setting up Jolt for WebLogic 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. There's also more
detailed information on developing with Jolt for WebLogic in the
Developers Guide, Using Jolt for WebLogic. 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-1999 by
BEA WebXpress. All Rights Reserved.
Last updated
1/18/1998