Installing the SimpApp Sample

  1. Install the Jolt class library (jolt.jar) and Servlet Connectivity for Oracle Tuxedo class library (joltjse.jar) on the Web application server. Extract the class files if it is required by your Web application server.
  2. Compile the SimpAppServlet.java. Ensure that you include the standard JDK classes.zip, Jolt class library, and Servlet Connectivity for Oracle Tuxedo class library in the classpath.
  3. Put the simpapp.html and simpapp.properties files in the public HTML directory.
    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 SimpAppServlet is examples.jolt.servlet.simpapp.
  4. Modify the simpapp.properties file. Change the “appaddrlist” and “failoverlist” with the proper Jolt server hosts and ports. Specify the proper Oracle 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
  5. Register “Simpapp” for the SimpAppServlet. Consult your Web application server for details. If you are using Oracle WebLogic Server, add the following section of the config.xml file:
    <Application
        Deployed="true"  
        Name="simpapp"
        Path=".\config\mydomain\applications"
    >
        <WebAppComponent
            Name="simpapp"
            Targets="myserver"
            URI="simpapp"
         />
    </Application>
  6. To access the SimpApp initial page “simpapp.html,” type: http://mywebserver:8080/simpapp.html