org.jboss.web.tomcat.tc5.jca
Class CachedConnectionValve

java.lang.Object
  extended byValveBase
      extended byorg.jboss.web.tomcat.tc5.jca.CachedConnectionValve

public class CachedConnectionValve
extends ValveBase

This valve checks for unclosed connections on a servlet request

See Also:
Serialized Form

Field Summary
protected  CachedConnectionManager (src) ccm
          The cached connection manager
protected  java.lang.String ccmName
          The object name of the cached connection manager
protected  LifecycleSupport support
          Valve-lifecycle helper object
protected  TransactionManager (src) tm
          The transaction manager
protected  java.lang.String tmName
          The object name of the transaction manager service
protected  java.util.Set unsharableResources
          The unshareable resources
 
Constructor Summary
CachedConnectionValve()
          Create a new valve
 
Method Summary
 void addLifecycleListener(LifecycleListener listener)
           
protected  void checkTransactionComplete(Request request)
           
 LifecycleListener[] findLifecycleListeners()
           
 java.lang.String getCachedConnectionManagerObjectName()
          Get the cached connection manager object name
 java.lang.String getInfo()
          Get information about this Valve.
 java.lang.String getTransactionManagerObjectName()
          Get the transaction manager object name
 void invoke(Request request, Response response)
           
 void removeLifecycleListener(LifecycleListener listener)
           
 void setCachedConnectionManagerObjectName(java.lang.String ccmName)
          Set the cached connection manager object name
 void setTransactionManagerObjectName(java.lang.String tmName)
          Set the transaction manager object name
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

support

protected LifecycleSupport support
Valve-lifecycle helper object


ccmName

protected java.lang.String ccmName
The object name of the cached connection manager


ccm

protected CachedConnectionManager (src)  ccm
The cached connection manager


tmName

protected java.lang.String tmName
The object name of the transaction manager service


tm

protected TransactionManager (src)  tm
The transaction manager


unsharableResources

protected java.util.Set unsharableResources
The unshareable resources

Constructor Detail

CachedConnectionValve

public CachedConnectionValve()
Create a new valve

Method Detail

getInfo

public java.lang.String getInfo()
Get information about this Valve.


getCachedConnectionManagerObjectName

public java.lang.String getCachedConnectionManagerObjectName()
Get the cached connection manager object name


setCachedConnectionManagerObjectName

public void setCachedConnectionManagerObjectName(java.lang.String ccmName)
Set the cached connection manager object name


getTransactionManagerObjectName

public java.lang.String getTransactionManagerObjectName()
Get the transaction manager object name


setTransactionManagerObjectName

public void setTransactionManagerObjectName(java.lang.String tmName)
Set the transaction manager object name


invoke

public void invoke(Request request,
                   Response response)
            throws java.io.IOException,
                   ServletException
Throws:
java.io.IOException
ServletException

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)

findLifecycleListeners

public LifecycleListener[] findLifecycleListeners()

start

public void start()
           throws LifecycleException
Throws:
LifecycleException

stop

public void stop()
          throws LifecycleException
Throws:
LifecycleException

checkTransactionComplete

protected void checkTransactionComplete(Request request)