org.objectweb.jotm.jta.rmi
Class JTAClientTransactionInterceptor

java.lang.Object
  extended by org.objectweb.jotm.jta.rmi.JTAClientTransactionInterceptor
All Implemented Interfaces:
Serializable, org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor

public class JTAClientTransactionInterceptor
extends Object
implements org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor

Class JTAClientTransactionInterceptor is a JRMP Transaction client interceptor for Transaction Context propagation

Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
See Also:
Serialized Form

Field Summary
static int TX_CTX_ID
          transaction context id
 
Constructor Summary
JTAClientTransactionInterceptor()
          constructor
 
Method Summary
 String name()
          get the name of this interceptor
 void receiveException(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
           
 void receiveOther(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
           
 void receiveReply(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
          Receive reply interception
 void sendPoll(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
           
 void sendRequest(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
          send client context with the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TX_CTX_ID

public static int TX_CTX_ID
transaction context id

Constructor Detail

JTAClientTransactionInterceptor

public JTAClientTransactionInterceptor()
constructor

Method Detail

name

public String name()
get the name of this interceptor

Specified by:
name in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Returns:
name

sendRequest

public void sendRequest(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
                 throws IOException
send client context with the request. The sendingRequest method of the JPortableInterceptors is called prior to marshalling arguments and contexts

Specified by:
sendRequest in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Parameters:
jri - JClientRequestInfo the jrmp client info
Throws:
IOException - if an exception occur with the ObjectOutput

receiveReply

public void receiveReply(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
                  throws IOException
Receive reply interception

Specified by:
receiveReply in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Parameters:
jri - JClientRequestInfo the jrmp client info
Throws:
IOException - if an exception occur with the ObjectOutput

sendPoll

public void sendPoll(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
              throws IOException
Specified by:
sendPoll in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Throws:
IOException

receiveException

public void receiveException(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
                      throws IOException
Specified by:
receiveException in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Throws:
IOException

receiveOther

public void receiveOther(org.ow2.carol.rmi.interceptor.api.JClientRequestInfo jri)
                  throws IOException
Specified by:
receiveOther in interface org.ow2.carol.rmi.interceptor.spi.JClientRequestInterceptor
Throws:
IOException


Copyright © 2005-2011 OW2 Consortium. All Rights Reserved.