SimpApp Sample

A sample application named simpapp is included with Jolt. The simpapp application illustrates how the servlet uses Servlet Connectivity for Oracle Tuxedo. The following servlet tasks are illustrated by the SimpApp sample:

  • Using a property file to create a session pool
  • Getting the session pool manager
  • Retrieving the session pool by name
  • Invoking an Oracle Tuxedo service
  • Processing the result set

This example demonstrates how a servlet can connect to Oracle 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 Oracle 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 to the client browser within some generated HTML.

Note:

The WebLogic Server is used in this example.