org.openorb.ots.xa

Class SessionManager

public class SessionManager extends LocalObject implements SessionManager, ConnectionEventListener, LogEnabled

This class is a session manager that provides a connection to a user for SQL statements. The same connection will be used for XA.

Author: Jerome Daniel

Constructor Summary
SessionManager(ORBInitInfo info)
Constructor
Method Summary
voidconnectionClosed(ConnectionEvent event)
This operation is called by the application when it invokes the 'close' operation on the connection.
voidconnectionErrorOccurred(ConnectionEvent event)
This operation is called when an error occured.
voidenableLogging(Logger logger)
voidfreeConnections(Coordinator coordinator)
This operation is used to free connections.
ConnectiongetConnection(String name, String password, String profile)
Return a new database connection for the user
LoggergetLogger()
voidupdateConnection(XAConnection xa_connection, Coordinator coordinator)
This operation is used to update a connection coordinator

Constructor Detail

SessionManager

public SessionManager(ORBInitInfo info)
Constructor

Method Detail

connectionClosed

public void connectionClosed(ConnectionEvent event)
This operation is called by the application when it invokes the 'close' operation on the connection.

connectionErrorOccurred

public void connectionErrorOccurred(ConnectionEvent event)
This operation is called when an error occured.

enableLogging

public void enableLogging(Logger logger)

freeConnections

public void freeConnections(Coordinator coordinator)
This operation is used to free connections.

getConnection

public Connection getConnection(String name, String password, String profile)
Return a new database connection for the user

getLogger

public Logger getLogger()

updateConnection

public void updateConnection(XAConnection xa_connection, Coordinator coordinator)
This operation is used to update a connection coordinator