org.apache.geronimo.connector.outbound
Class TransactionCachingInterceptor
java.lang.Object
org.apache.geronimo.connector.outbound.TransactionCachingInterceptor
- All Implemented Interfaces:
- ConnectionInterceptor, org.apache.geronimo.transaction.ConnectionReleaser
- public class TransactionCachingInterceptor
- extends Object
- implements ConnectionInterceptor, org.apache.geronimo.transaction.ConnectionReleaser
TransactionCachingInterceptor.java
TODO: This implementation does not take account of unshareable resources
TODO: This implementation does not take account of application security
where several connections with different security info are obtained.
TODO: This implementation does not take account of container managed security where,
within one transaction, a security domain boundary is crossed
and connections are obtained with two (or more) different subjects.
I suggest a state pattern, with the state set in a threadlocal upon entering a component,
will be a usable implementation.
The afterCompletion method will need to move to an interface, and that interface include the
security info to distinguish connections.
Created: Mon Sep 29 15:07:07 2003
- Version:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionCachingInterceptor
public TransactionCachingInterceptor(ConnectionInterceptor next,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager)
getConnection
public void getConnection(ConnectionInfo connectionInfo)
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface ConnectionInterceptor
- Throws:
javax.resource.ResourceException
returnConnection
public void returnConnection(ConnectionInfo connectionInfo,
ConnectionReturnAction connectionReturnAction)
- Specified by:
returnConnection
in interface ConnectionInterceptor
destroy
public void destroy()
- Specified by:
destroy
in interface ConnectionInterceptor
afterCompletion
public void afterCompletion(Object stuff)
- Specified by:
afterCompletion
in interface org.apache.geronimo.transaction.ConnectionReleaser
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.