org.objectweb.jotm.jta.rmi

Class JTAClientTransactionInterceptor

Implemented Interfaces:
JClientRequestInterceptor

public class JTAClientTransactionInterceptor
extends Object
implements JClientRequestInterceptor

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

Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

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(JClientRequestInfo jri)
void
receive_other(JClientRequestInfo jri)
void
receive_reply(JClientRequestInfo jri)
Receive reply interception
void
send_poll(JClientRequestInfo jri)
void
send_request(JClientRequestInfo jri)
send client context with the request.

Field Details

TX_CTX_ID

public static int TX_CTX_ID
transaction context id

Constructor Details

JTAClientTransactionInterceptor

public JTAClientTransactionInterceptor()
constructor

Method Details

name

public String name()
get the name of this interceptor

Returns:
name


receive_exception

public void receive_exception(JClientRequestInfo jri)
            throws IOException


receive_other

public void receive_other(JClientRequestInfo jri)
            throws IOException


receive_reply

public void receive_reply(JClientRequestInfo jri)
            throws IOException
Receive reply interception

Parameters:
jri - JClientRequestInfo the jrmp client info


send_poll

public void send_poll(JClientRequestInfo jri)
            throws IOException


send_request

public void send_request(JClientRequestInfo jri)
            throws IOException
send client context with the request. The sendingRequest method of the JPortableInterceptors is called prior to marshalling arguments and contexts

Parameters:
jri - JClientRequestInfo the jrmp client info