org.objectweb.jotm.jta.rmi
Class JTATransactionServiceContext

java.lang.Object
  extended by org.objectweb.jotm.jta.rmi.JTATransactionServiceContext
All Implemented Interfaces:
Externalizable, Serializable, org.ow2.carol.rmi.interceptor.spi.JServiceContext

public class JTATransactionServiceContext
extends Object
implements org.ow2.carol.rmi.interceptor.spi.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 externalizable
 
Method Summary
 int getContextId()
          the JServiceContext id
 org.objectweb.jotm.TransactionContext getTransactionContext()
          get the transaction context
 void readExternal(ObjectInput in)
          readExternal to initialize Transaction context
 void setContext(org.objectweb.jotm.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 externalizable

Method Detail

getContextId

public int getContextId()
the JServiceContext id

Specified by:
getContextId in interface org.ow2.carol.rmi.interceptor.spi.JServiceContext

setContext

public void setContext(org.objectweb.jotm.TransactionContext txCtx,
                       boolean isReply)
constructor

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

getTransactionContext

public org.objectweb.jotm.TransactionContext getTransactionContext()
get the transaction context

Returns:
TransactionContext the Transaction context

readExternal

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

Specified by:
readExternal in interface Externalizable
Parameters:
in - the object input
Throws:
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
Throws:
IOException


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