org.objectweb.jotm.jta.rmi
Class JTAServerTransactionInterceptor

java.lang.Object
  extended by org.objectweb.jotm.jta.rmi.JTAServerTransactionInterceptor
All Implemented Interfaces:
org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor

public class JTAServerTransactionInterceptor
extends Object
implements org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor

Class JTAServerTransactionInterceptor is a JRMP Transaction server interceptor for Transaction Context propagation

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

Field Summary
static int TX_CTX_ID
          transaction context id
 
Constructor Summary
JTAServerTransactionInterceptor()
          constructor
 
Method Summary
 String name()
          get the name of this interceptor
 void receiveRequest(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
          Receive request
 void sendException(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
           
 void sendOther(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
           
 void sendReply(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
          send reply with context
 
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

JTAServerTransactionInterceptor

public JTAServerTransactionInterceptor()
constructor

Method Detail

receiveRequest

public void receiveRequest(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
                    throws IOException
Receive request

Specified by:
receiveRequest in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Parameters:
jri - JServerRequestInfo the jrmp server request information
Throws:
IOException - if an exception occur with the ObjectOutput

sendReply

public void sendReply(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
               throws IOException
send reply with context

Specified by:
sendReply in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Parameters:
jri - JServerRequestInfo the jrmp server request information
Throws:
IOException - if an exception occur with the ObjectOutput

name

public String name()
get the name of this interceptor

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

sendException

public void sendException(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
                   throws IOException
Specified by:
sendException in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Throws:
IOException

sendOther

public void sendOther(org.ow2.carol.rmi.interceptor.api.JServerRequestInfo jri)
               throws IOException
Specified by:
sendOther in interface org.ow2.carol.rmi.interceptor.spi.JServerRequestInterceptor
Throws:
IOException


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