org.objectweb.jotm.jta.rmi

Class JTATransactionServiceContext

Implemented Interfaces:
Externalizable, JServiceContext

public class JTATransactionServiceContext
extends Object
implements 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)

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

Constructor Details

JTATransactionServiceContext

public JTATransactionServiceContext()
empty constructor for extarenalizable

Method Details

getContextId

public int getContextId()
the JServiceContext id


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

Parameters:
in - the object input


setContext

public void setContext(TransactionContext txCtx,
                       boolean isReply)
constructor

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


writeExternal

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

Parameters:
out - the object output