org.ow2.jonas.web.tomcat6.tx
Class TransactionValve

java.lang.Object
  extended by org.apache.catalina.valves.ValveBase
      extended by org.ow2.jonas.web.tomcat6.tx.TransactionValve
All Implemented Interfaces:
MBeanRegistration, org.apache.catalina.Contained, org.apache.catalina.Valve

public class TransactionValve
extends org.apache.catalina.valves.ValveBase

This valve is used when TX service is enabled. It ensures that the transaction is aborted at the end of the execution of the method if it was started in the method.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.apache.catalina.valves.ValveBase
container, containerLog, controller, domain, info, mserver, next, oname, sm
 
Constructor Summary
TransactionValve(TransactionManager transactionManager)
          Default constructor.
 
Method Summary
 void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response)
          Ensure that there is no pending transaction at the end of the method
 
Methods inherited from class org.apache.catalina.valves.ValveBase
backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getInfo, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionValve

public TransactionValve(TransactionManager transactionManager)
Default constructor.

Method Detail

invoke

public void invoke(org.apache.catalina.connector.Request request,
                   org.apache.catalina.connector.Response response)
            throws IOException,
                   ServletException
Ensure that there is no pending transaction at the end of the method

Specified by:
invoke in interface org.apache.catalina.Valve
Specified by:
invoke in class org.apache.catalina.valves.ValveBase
Parameters:
request - The servlet request to be processed
response - The servlet response to be created
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet error occurs


Copyright © 2010 OW2 Consortium. All Rights Reserved.