Jolt
[Attributes and Console Screen Reference for Jolt]
Jolt is a Java-based client API that manages requests to BEA Tuxedo services via a Jolt Service Listener (JSL) running on the Tuxedo server. The Jolt API is embedded within the WebLogic API, and is accessible from a servlet or any other BEA WebLogic application. The Jolt Java client class library can be used in HTTP servlets running in WebLogic Server and provides an interface between HTML browser clients and BEA Tuxedo services.
Configuring Jolt for WebLogic Server
The following sections provide information on how to configure WebLogic Server to interoperate with Tuxedo using Jolt. Consult your BEA Product Documentation for detailed information on how to configure and use Jolt.
Set Your Environment
You must update your CLASSPATH environment variable used by your WebLogic Server and command-line shells to include the following files from your Tuxedo installation:
- jolt.jar
- joltjse.jar
- joltwls.jar
Create a Jolt Startup & Shutdown Class
You must create a Startup and a Shutdown class to establish and terminate the connection between Tuxedo and WebLogic Server. WebLogic Server uses the PoolManagerStartUp class to establish a connection to Tuxedo whenever the WebLogic Server is started or restarted. The shutdown class instructs WebLogic Server to invoke the PoolManagerShutDown class to disconnect the Jolt session pools from Tuxedos when the WebLogic Server shuts down. For more information on Startup and Shutdown classes, see Startup and Shutdown Classes.
- In the left pane, expand the Deployments folder.
- Click on the name of the Startup & Shutdown folder.
- Click on the Configure a new Startup Class ... link.
- In the Name field, enter the name for your Jolt Startup class. Example: MyJoltStartupClass.
- In the ClassName field, enter the following: bea.jolt.pool.servlet.weblogic.PoolManagerStartUp
- Click to enable Failure is Fatal.
- Click Create.
- Target and Deploy your Jolt Startup class and click Apply.
- Click on the name of the Startup & Shutdown folder.
- Click on the Configure a new Shutdown Class ... link.
- In the Name field, enter the name for your Jolt Shutdown class. Example: MyJoltShutdownClass.
- In the ClassName field, enter the following: bea.jolt.pool.servlet.weblogic.PoolManagerShutDown
- Click Create.
- Target and Deploy your Jolt Shutdown class and click Apply.
Configuring a Jolt Connection Pool
The following sections provide information on how to configure Jolt Connections Pools for you Tuxedo ATMI applications.
Create a Jolt Connection Pool
- Click the Jolt node in the left pane. The Jolt Connection Pools table displays in the right pane showing all the Jolt connection pools defined in the domain.
- Click the Configure a New Jolt Connection Pool text link. A dialog displays in the right pane showing the tabs associated with configuring a new connection pool.
- Enter values in the Name, Minimum Pool Size, Maximum Pool Size, and the Recv Timeout attribute fields. Click the Security Context Enabled checkbox to enable security context.
- Click Create to create a connection pool instance with the name you specified in the Name field. The new instance is added under the Jolt node in the left pane.
- Click the Addresses tab to provide Jolt Service Listener (JSL) addresses for a connection pool. See Configuring Connection Failure Handling.
- Click the User tab to create a user identity. See Configuring a User Security Identity.
- Restart the Administration Server so that your changes can take effect.
Assign Jolt Connection Pools to a Server
- Click the instance node in the left pane under Jolt to select a connection pool for assignment. A dialog displays in the right pane showing the tabs associated with this instance.
- Click the Target and Deploy tab.
- To assign a connection pool to a selected server, click one or more servers in the list of Independent Servers that has an empty check box. A check mark is displayed next to each server assigned to a Jolt connection pool.
- To remove a connection pool from a server, click one or more servers in the list of Independent Servers that has a check mark. An empty check box is displayed next to each server that is not assigned to a Jolt connection pool.
- Click Apply to save your assignments.
Assign Jolt Connection Pools to a Cluster
- Click the instance node in the left pane under Jolt for the connection pool you want to assign. A dialog displays in the right pane showing the tabs associated with this instance.
- Click the Target and Deploy tab.
- To assign a connection pool to a cluster, select one or more clusters in the list of clusters that has an empty check box. A check mark is displayed next to each cluster assigned to a Jolt connection pool.
- To assign a connection pool to the all of the servers in a cluster, click All servers in the cluster.
- To assign a connection pool to selected servers in a cluster, click Part of the cluster. Select one or more clusters of the available servers.
- To remove a connection pool from a cluster, select one or more servers in the list of clusters that has a check mark. An empty check box is displayed next to each cluster that is not assigned to a Jolt connection pool.
- Click Apply to save your assignments.
Configuring Connection Failure Handling
- Click the instance node in the left pane under Jolt for the connection pool you want to assign. A dialog displays in the right pane showing the tabs associated with this instance.
- Click the Configuration tab.
- Click the Addresses tab.
- Assign a list of primary JSL addresses.
- Assign a list of Failover JSL addresses.
- Click Apply to save your assignments.
Configuring a User Security Identity
- Click the instance node in the left pane under Jolt for the connection pool you want to assign. A dialog displays in the right pane showing the tabs associated with this instance.
- Click the Configuration tab.
- Click the User tab.
- In User Name, assign a user identity.
- In User Role, assign a user role.
- In User Password, click change to assign a user password.
- In Application Password, click change to assign a user password.
- Click Apply to save your assignments.
Administering Active Jolt Connection Pools
The following sections provide information on the Active Jolt Connection Pools page. This page allows you to view statistics about the active Jolt connection pools in your WebLogic Server domain.
Monitor Active Instances of a Jolt Connection Pool
- Click the Jolt node in the left pane. The Jolt Connection Pools table displays in the right pane showing all the Jolt connection pools defined in the domain.
- Click the Name of the Jolt connection pool you want to monitor.
- Click the Monitoring tab.
- Click the Monitor all Active Pools text link.
Resetting a Jolt Connection Pool
You can reset the Jolt connection pool without having to restart WebLogic Server. Clicking on the Reset icon brings down the existing connections to the Jolt servers and reconnects to them.