Joltsession constructor, Joltsession methods, Joltsession – HP NonStop G-Series User Manual

Page 106: Endsession

Advertising
background image

public void onReply ( JoltReply reply );
protected void finalize( );
}

For more information see the following classes: JoltSessionAttributes, JoltRemoteService, JoltTransaction, JoltReply.

JoltSession Constructor

The JoltSession constructor creates a JoltSession object with attributes from the JoltSessionAttributes class. The
JoltSession object is the logon to the target system which is identified in the APPADDRESS name of the
JoltSessionAttributes. In addition, programmers can specify the IDLETIMEOUT value (in seconds) in
JoltSessionAttributes to hint to the system when to drop the network connection while retaining the session. Value 0
means the network connection should be retained throughout the session. The administrator can override the behavior.

The programmer can set all other parameters for this constructor to null, depending upon the authentication level.

JoltSession

Creates an instance of the JoltSession class with the specified attributes.

JoltSession( JoltSessionAttributes attr, String userName,
String userRole, String userPassword, String appPassword )
throws SessionException;

Usage The JoltSession class creates an instance of the JoltSession class with the specified attributes. Specific components
are extracted to assist in joining an application and terminating a session.

JoltSession allows the user identified by the userName parameter to log on to the Jolt/TUXEDO system. All parameters
must be set according to the authentication level. If the logon is not successful, a SessionException is thrown. The object
is returned upon completion.

Throws The JoltSession constructor throws the following exceptions:

SessionException

TPEJOLT: Missing host name or missing port number.
TPEJOLT: Protocol Error
TPEJOLT: Network Error
TPEJOLT: Can't connect to (host name)

The JoltSession constructor throws the following TUXEDO errors:

tpinit()

TPEINVAL, TPENOENT, TPEPERM, TPEPROTO, TPESYSTEM, TPEOS

Refer to

TUXEDO Errors

or tperrno in the TUXEDO System Reference Manual for explanations of these error

messages.

JoltSession Methods

The JoltSession class contains one method, the endSession method, for handling session logoff activities, two additional
methods, isAlive() and onReply() for handling event subscription, and the overridden finalize() method.

endSession

Performs a session termination procedure.

void endSession( ) throws SessionException;

Advertising