org.apache.geronimo.connector.outbound.connectiontracking
Class ConnectionTrackingCoordinator
java.lang.Object
org.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:
- $Revision: 1.12 $ $Date: 2004/07/18 22:08:58 $
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
ConnectionTrackingCoordinator
public ConnectionTrackingCoordinator()
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
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.