org.objectweb.jotm.jta.rmi
Class JTATransactionServiceContext

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

public class JTATransactionServiceContext
extends Object
implements org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext, 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(ObjectInput in)
          readExternal to initialise Transaction context
 void setContext(TransactionContext txCtx, boolean isReply)
          constructor
 void writeExternal(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


getTransactionContext

public TransactionContext getTransactionContext()
get the transaction context

Returns:
TransactionContext the Transaction context

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
readExternal to initialise Transaction context

Specified by:
readExternal in interface Externalizable
Parameters:
in - the object input
IOException
ClassNotFoundException

writeExternal

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

Specified by:
writeExternal in interface Externalizable
Parameters:
out - the object output
IOException