The WebSphere® eXtreme Scale connection factory
includes an eXtreme Scale client
connection that can be shared between applications and persisted through
application restarts.
About this task
The client connection includes a management bean that provides
connection status information and lifecycle management operations.
Procedure
Maintain client connections. When the first
connection is obtained from the
XSConnectionFactory connection
factory object, an
eXtreme Scale client
connection is established to the remote data grid and the ObjectGridJ2CConnection
MBean is created. The client connection is maintained for the life
of the process. To end a client connection, invoke one of the following
events::
- Stop the resource adapter. A resource adapter can be stopped,
for example, when it is embedded in an application and the application
is stopped.
- Invoke the resetConnection MBean operation
on the ObjectGridJ2CConnection MBean. When the connection is reset,
all connections are invalidated, transactions completed, and the ObjectGrid client
connection is destroyed. Subsequent calls to the getConnection methods
on the connection factory result in a new client connection.
WebSphere Application
Server also provides additional management beans for managing J2C
connections, monitoring connection pools, and performance.