org.objectweb.jotm.jta.rmi
Class JTATransactionServiceContext
- Externalizable, JServiceContext
public class JTATransactionServiceContext
implements JServiceContext, Externalizable
Class JTATransactionServiceContext
is a JRMP Class for Transaction
Context Propagation
Version:
- Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
JTATransactionServiceContext
public JTATransactionServiceContext()
empty constructor for extarenalizable
getContextId
public int getContextId()
the JServiceContext id
getTransactionContext
public TransactionContext getTransactionContext()
get the transaction context
- TransactionContext the Transaction context
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal to initialise Transaction context
in
- the object input
setContext
public void setContext(TransactionContext txCtx,
boolean isReply)
constructor
txCtx
- TransactionContext the RMI (Serializable) Transaction ContextisReply
- boolean is reply indicator
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal to send Transaction context
out
- the object output