com.stc.connector.framework.client
Interface AssociateableHandle


public interface AssociateableHandle

Interface that needs to be implemented by all application specific connection handles (including CCI Connection) in order to be managed by STCManagedConnection.

Version:
$Version$
Author:
$Author: kgambrel $

Method Summary
 void invalidateConnection()
          This is called by the ManagedConnection to invalidate the connection handle.
 void reassociateConnection(ManagedConnectionCallback mc)
          This is called by the ManagedConnection to associate the connection handle to the ManagedConnection.
 

Method Detail

invalidateConnection

public void invalidateConnection()
                          throws javax.resource.ResourceException
This is called by the ManagedConnection to invalidate the connection handle.

Throws:
javax.resource.ResourceException - upon error.

reassociateConnection

public void reassociateConnection(ManagedConnectionCallback mc)
                           throws javax.resource.ResourceException
This is called by the ManagedConnection to associate the connection handle to the ManagedConnection. The implementation should disassociate the associated ManagedConnection and associate itself to the ManagedConnection passed in as the argument.

Parameters:
mc - The ManagedConnection instance with which the connection handle will associate.
Throws:
javax.resource.ResourceException - upon error.