org.objectweb.jotm.jta.rmi
Class JTATransactionServiceContext

java.lang.Object
  extended byorg.objectweb.jotm.jta.rmi.JTATransactionServiceContext
All Implemented Interfaces:
java.io.Externalizable, org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext, java.io.Serializable

public class JTATransactionServiceContext
extends java.lang.Object
implements org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext, java.io.Externalizable

Class JTATransactionServiceContext is a JRMP Class for Transaction Context Propagation

Version:
1.0, 13/09/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
See Also:
Serialized Form

Constructor Summary
JTATransactionServiceContext()
          empty constructor for extarenalizable
 
Method Summary
 int getContextId()
          the JServiceContext id
 TransactionContext getTransactionContext()
          get the transaction context
 void readExternal(java.io.ObjectInput in)
          readExternal to initialise Transaction context
 void setContext(TransactionContext txCtx, boolean isReply)
          constructor
 void writeExternal(java.io.ObjectOutput out)
          writeExternal to send Transaction context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTATransactionServiceContext

public JTATransactionServiceContext()
empty constructor for extarenalizable

Method Detail

getContextId

public int getContextId()
the JServiceContext id

Specified by:
getContextId in interface org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext

setContext

public void setContext(TransactionContext txCtx,
                       boolean isReply)
constructor

Parameters:
txCtx - TransactionContext the RMI (Serializable) Transaction Context
isReply - boolean is reply indicator

getTransactionContext

public TransactionContext getTransactionContext()
get the transaction context

Returns:
TransactionContext the Transaction context

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
readExternal to initialise Transaction context

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - the object input
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
writeExternal to send Transaction context

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
out - the object output
Throws:
java.io.IOException