org.apache.geronimo.connector.outbound
Class TransactionEnlistingInterceptor

java.lang.Object
  extended by org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor
All Implemented Interfaces:
ConnectionInterceptor

public class TransactionEnlistingInterceptor
extends java.lang.Object
implements ConnectionInterceptor

TransactionEnlistingInterceptor.java

Created: Fri Sep 26 14:52:24 2003

Version:
1.0

Field Summary
protected static org.slf4j.Logger log
           
 
Constructor Summary
TransactionEnlistingInterceptor(ConnectionInterceptor next, javax.transaction.TransactionManager transactionManager)
           
 
Method Summary
 void destroy()
           
 void getConnection(ConnectionInfo connectionInfo)
           
 void info(java.lang.StringBuilder s)
           
 void returnConnection(ConnectionInfo connectionInfo, ConnectionReturnAction connectionReturnAction)
          The returnConnection method

todo Probably the logic needs improvement if a connection error occurred and we are destroying the handle.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.slf4j.Logger log
Constructor Detail

TransactionEnlistingInterceptor

public TransactionEnlistingInterceptor(ConnectionInterceptor next,
                                       javax.transaction.TransactionManager transactionManager)
Method Detail

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)
The returnConnection method

todo Probably the logic needs improvement if a connection error occurred and we are destroying the handle.

Specified by:
returnConnection in interface ConnectionInterceptor
Parameters:
connectionInfo - a ConnectionInfo value
connectionReturnAction - a ConnectionReturnAction value

destroy

public void destroy()
Specified by:
destroy in interface ConnectionInterceptor

info

public void info(java.lang.StringBuilder s)
Specified by:
info in interface ConnectionInterceptor


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.