Jolt 1.2 Developer's Guide
Table Of Contents
- Jolt for NonStop(TM) TUXEDO Developer's Guide
- Jolt for NonStop(TM) TUXEDO Developer's Guide
- About This Guide
- 1. Introducing Jolt
- 2. Installing Jolt
- 3. Configuring the Jolt System
- 4. Bulk Loading NonStopTM TUXEDO Services
- 5. Using the Jolt Repository Editor
- 6. Using the Jolt Class Library
- 7. Using JoltBeans
- 8. Using Servlet Connectivity for NonStopTM TUXEDO
- 9. Using Jolt 1.2 ASP Connectivity for NonStopTM TUXEDO
- A. NonStopTM TUXEDO Errors
- B. System Messages
- Index

How to retrieve the session pool by name●
How to invoke a NonStop
TM
TUXEDO service●
How to process the result set●
This example demonstrates how a Servlet may connect to NonStop
TM
TUXEDO and call upon one of its services; it should be invoked from
the simpapp.html file. The servlet creates a session pool manager at initialization, which is used to obtain a session when the doPost()
method is invoked. This session is used to connect to a service in NonStop
TM
TUXEDO with a name described by the posted "SVCNAME"
argument. In this example the service is called "TOUPPER", which transposes the posted "STRING" argument text into uppercase, and
returns the result. This is returned to the client browser within some generated HTML.
Note
The Weblogic Server is used in this example.
Requirements for Running the Simpapp Sample
Following are the requirements for Running the Simpapp sample:
Any Web Application Server with Servlet JSDK 1.1 or above.●
NonStop
TM
TUXEDO 6.4 or above with SimpApp sample running.●
Jolt 1.2●
Installing the SimpApp Sample
Install the Jolt class library (jolt.jar) and Servlet Connectivity for NonStop
TM
TUXEDO class library (joltjse.jar) to the web
application server. Extract the class files if it is required by your web application server.
1.
Compile the SimpAppServlet.java. Make sure that you include the standard JDK 1.1.x classes.zip, JSDK 1.1 classes, Jolt classes
library, and Servlet Connectivity for NonStop
TM
TUXEDO class library in the class path.
javac -classpath $(JAVA_HOME)/lib/classes.zip:$(JSDK)/lib/servlet.jar:
$(JOLTHOME)/jolt.jar:$(JOLTHOME)/joltjse.jar:./classes
-d ./classes SimpAppServlet.java
Note
The package name of the SimAppServlet is examples.jolt.servlet.simapp.
2.
Put the simpapp.html and simpapp.properties files in the public HTML directory.3.
Modify the simpapp.properties file. Change the appaddrlist and failoverlist to the proper Jolt server hosts and ports. Specify the proper
NonStop
TM
TUXEDO authentication information if the SimpApp has security turned on. For example:
#simpapp
#Fri Apr 16 00:43:30 PDT 1999
poolname=simpapp
appaddrlist=//host:7000,//host:8000
failoverlist=//backup:9000
minpoolsize=1
maxpoolsize=3
userrole=tester
apppassword=appPass
username=guest
userpassword=myPass
4.
Register Simpapp for the SimpAppServlet. Consult your web application server for details. For WebLogic users, add the following
line to the weblogic.properties file:
5.










