Class FBStandAloneConnectionManager

    • Method Detail

      • connectionClosed

        public void connectionClosed​(XcaConnectionEvent ce)
        Description copied from interface: XcaConnectionEventListener
        Notifies the close of a connection.

        A managed connection notifies its listeners by calling this method when an application component closes a connection handle. The owner of the managed connection can use this event to put the managed connection instance back in to the connection pool, or close the physical connection.

        Specified by:
        connectionClosed in interface XcaConnectionEventListener
        Parameters:
        ce - Connection event
      • connectionErrorOccurred

        public void connectionErrorOccurred​(XcaConnectionEvent ce)
        Description copied from interface: XcaConnectionEventListener
        Notifies a connection related error.

        The managed connection instance calls this method to notify its listeners of the occurrence of a physical connection-related error. The event notification happens just before it throws an exception to the application component using the connection handle.

        This method indicates that the associated managed connection instance is now invalid and unusable. The owner of the managed connection handles the connection error event notification by initiating owner-specific cleanup (for example, removing the managed connection instance from the connection pool) and then calling the destroy method to destroy the physical connection.

        Specified by:
        connectionErrorOccurred in interface XcaConnectionEventListener
        Parameters:
        ce - Connection event