Starttransaction, Getconnection, Setmaxconnections – HP NonStop G-Series User Manual

Page 297: Getmaxconnections

Advertising
background image

object are ignored. The tran parameter must be the object returned by the startTransaction()
method.

startTransaction

Transaction startTransaction(int timeout)

timeout

The transaction time-out value in seconds.

Returns A transaction object, or nothing if failure occurs.

Usage Start a transaction. The transaction should be committed or aborted before continuing to
another page, unless programmatic arrangements to commit or abort the transaction have been
made. Otherwise, the connection is locked until the transaction is terminated.

getConnection

Connection getConnection(int index)

index

A connection index.

Usage Get a connection. This method is part of the administrative API.

setMaxConnections

int setMaxConnections(int maxCons)

maxCons

The new session pool size.

Returns The new pool size.

Usage Change the session pool size. Currently shrinking the session pool is disallowed. This
method is part of the administrative class library.

getMaxConnections

int getMaxConnections()

Usage Get the maximum number of connections configured in this session pool. This method is
part of the administrative class library.

Advertising