org.apache.geronimo.connector.outbound.connectiontracking
Class ConnectionTrackingCoordinator

java.lang.Object
  extended byorg.apache.geronimo.connector.outbound.connectiontracking.ConnectionTrackingCoordinator
All Implemented Interfaces:
ConnectionTracker, org.apache.geronimo.transaction.TrackedConnectionAssociator

public class ConnectionTrackingCoordinator
extends Object
implements org.apache.geronimo.transaction.TrackedConnectionAssociator, ConnectionTracker

ConnectionTrackingCoordinator tracks connections that are in use by components such as EJB's. The component must notify the ccm when a method enters and exits. On entrance, the ccm will notify ConnectionManager stacks so the stack can make sure all connection handles left open from previous method calls are attached to ManagedConnections of the correct security context, and the ManagedConnections are enrolled in any current transaction. On exit, the ccm will notify ConnectionManager stacks of the handles left open, so they may be disassociated if appropriate. In addition, when a UserTransaction is started the ccm will notify ConnectionManager stacks so the existing ManagedConnections can be enrolled properly.

Version:
$Rev: 356022 $ $Date: 2005-12-11 21:58:34 +0100 (Sun, 11 Dec 2005) $

Constructor Summary
ConnectionTrackingCoordinator()
           
 
Method Summary
 org.apache.geronimo.transaction.InstanceContext enter(org.apache.geronimo.transaction.InstanceContext newInstanceContext)
           
 void exit(org.apache.geronimo.transaction.InstanceContext reenteringInstanceContext)
           
 void handleObtained(ConnectionTrackingInterceptor connectionTrackingInterceptor, ConnectionInfo connectionInfo)
           
 void handleReleased(ConnectionTrackingInterceptor connectionTrackingInterceptor, ConnectionInfo connectionInfo)
           
 void newTransaction()
           
 void setEnvironment(ConnectionInfo connectionInfo, String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionTrackingCoordinator

public ConnectionTrackingCoordinator()
Method Detail

enter

public org.apache.geronimo.transaction.InstanceContext enter(org.apache.geronimo.transaction.InstanceContext newInstanceContext)
                                                      throws javax.resource.ResourceException
Specified by:
enter in interface org.apache.geronimo.transaction.TrackedConnectionAssociator
Throws:
javax.resource.ResourceException

newTransaction

public void newTransaction()
                    throws javax.resource.ResourceException
Specified by:
newTransaction in interface org.apache.geronimo.transaction.TrackedConnectionAssociator
Throws:
javax.resource.ResourceException

exit

public void exit(org.apache.geronimo.transaction.InstanceContext reenteringInstanceContext)
          throws javax.resource.ResourceException
Specified by:
exit in interface org.apache.geronimo.transaction.TrackedConnectionAssociator
Throws:
javax.resource.ResourceException

handleObtained

public void handleObtained(ConnectionTrackingInterceptor connectionTrackingInterceptor,
                           ConnectionInfo connectionInfo)
Specified by:
handleObtained in interface ConnectionTracker

handleReleased

public void handleReleased(ConnectionTrackingInterceptor connectionTrackingInterceptor,
                           ConnectionInfo connectionInfo)
Specified by:
handleReleased in interface ConnectionTracker

setEnvironment

public void setEnvironment(ConnectionInfo connectionInfo,
                           String key)
Specified by:
setEnvironment in interface ConnectionTracker


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.