org.objectweb.jotm.jta.rmi
Class JTAClientTransactionInterceptor

java.lang.Object
  |
  +--org.objectweb.jotm.jta.rmi.JTAClientTransactionInterceptor
All Implemented Interfaces:
org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor, Serializable

public class JTAClientTransactionInterceptor
extends Object
implements org.objectweb.carol.rmi.jrmp.interceptor.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 receive_exception(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
           
 void receive_other(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
           
 void receive_reply(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
          Receive reply interception
 void send_poll(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
           
 void send_request(org.objectweb.carol.rmi.jrmp.interceptor.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.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Returns:
name

send_request

public void send_request(org.objectweb.carol.rmi.jrmp.interceptor.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:
send_request in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Throws:
IOException - if an exception occur with the ObjectOutput

receive_reply

public void receive_reply(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                   throws IOException
Receive reply interception

Specified by:
receive_reply in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
Throws:
IOException - if an exception occur with the ObjectOutput

send_poll

public void send_poll(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
               throws IOException
Specified by:
send_poll in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
IOException

receive_exception

public void receive_exception(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                       throws IOException
Specified by:
receive_exception in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
IOException

receive_other

public void receive_other(org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInfo jri)
                   throws IOException
Specified by:
receive_other in interface org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor
IOException