Jolt object relationships – HP NonStop G-Series User Manual
Page 67

3
withdrawal=new JoltRemoteService( servname, session );
Looks up
the service
attributes in
the
Repository
4
withdrawal.addString( "accountnumber", "123" );
withdrawal.addFloat( "amount", (float) 100.00 );
Populates
variables in
the client
(no Jolt
Server
activity)
5
trans=new JoltTransaction( time-out, session );
Begins a
new
TUXEDO
transaction
6
withdrawal.call( trans );
Executes
the
TUXEDO
service
7
trans.commit()
or
trans.rollback();
Completes
or rolls back
transaction
8
balance = withdrawal.getFloatDef( "balance," (float) 0.0 );
Retrieves
the results
(no Jolt
Server
activity)
9
session.endSession();
Logs the
client off of
TUXEDO
The following tasks summarize the interaction shown in
and are the steps involved in beginning a transaction:
Bind the client to the TUXEDO environment using the JoltSessionAttributes class.
1.
Establish a session.
2.
Set variables.
3.
Perform the necessary transaction processing.
4.
Log the client off of the TUXEDO system.
5.
Each of these activities is handled through the use of the Jolt Class Library classes. These classes include methods for setting and clearing
data and for handling remote service actions. The following section describes the Jolt Class Library classes in more detail.
Jolt Object Relationships
The following diagram illustrates the relationship between the instantiated objects of the Jolt Class Library classes.
Figure 6-2. Jolt Object Relationships