Sessionpool class, Removesessionpool, Sessionpool methods – HP NonStop G-Series User Manual

Page 281

Advertising
background image

This method is part of the administrative class library.

removeSessionPool

final void removeSessionPool(String id)

Parameters

id

Reserved for future use. Must be null.

Usage Shut down and remove the session pool; all active connections in this session pool are
terminated immediately. The ID must match the id in createSessionPool(). This method is part
of the administrative class library.

SessionPool Class

java.lang.Object
|
+----bea.web.SessionPool

This base class represents a session pool that contains one or more connections (sessions) to Jolt
servers. The session pool is responsible to select the least busy connection to serve each service
call. An application may tie multiple service calls into a transaction. To start a transaction, the
session pool selects the least busy connection and puts it in transactional mode.

Unless the number of connections in the session pool is one or the request is engaged in a
transaction, there is no guarantee that the service calls in each HTTP request will be served by
the same connection. All service calls associated with the transaction are handled by the same
connection. The connection is locked until the transaction is committed or aborted. The
transaction should be committed or aborted before continuing to another page, unless
programmatic arrangements to commit or abort the transaction have been made.

SessionPool Methods

The following methods are used in conjunction with the SessionPool class:

startTransaction

getConnection

getMaxConnections

setMaxConnections

Advertising