org.objectweb.jotm.ots
Class OTSInterceptor

java.lang.Object
  extended byorg.omg.CORBA.LocalObject
      extended byorg.objectweb.jotm.ots.OTSInterceptor
All Implemented Interfaces:
Object
Direct Known Subclasses:
OTSClientTransactionInterceptor, OTSServerTransactionInterceptor

public abstract class OTSInterceptor
extends LocalObject


Field Summary
protected  org.omg.IOP.Codec codec
           
protected  org.omg.DynamicAny.DynAnyFactory dynAnyFactoryS_
           
protected static ORB orb
           
protected  int TX_CTX_ID
           
 
Constructor Summary
OTSInterceptor(org.omg.PortableInterceptor.ORBInitInfo info)
          constructor
 
Method Summary
protected  org.omg.IOP.ServiceContext buildCorbaPropagationContext(TransactionContext txCtx)
          Build and returns the CORBA PropagationContext (JTS)
protected  Any create_any()
           
protected  TransactionContext decodeCorbaPropagationContext(org.omg.IOP.ServiceContext sCtx)
          decode the Corba Propagation Context and build an internal transaction context
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codec

protected org.omg.IOP.Codec codec

dynAnyFactoryS_

protected org.omg.DynamicAny.DynAnyFactory dynAnyFactoryS_

TX_CTX_ID

protected final int TX_CTX_ID
See Also:
Constant Field Values

orb

protected static ORB orb
Constructor Detail

OTSInterceptor

public OTSInterceptor(org.omg.PortableInterceptor.ORBInitInfo info)
constructor

Method Detail

create_any

protected Any create_any()
                  throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode
Throws:
org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode

buildCorbaPropagationContext

protected org.omg.IOP.ServiceContext buildCorbaPropagationContext(TransactionContext txCtx)
                                                           throws org.omg.PortableInterceptor.ForwardRequest
Build and returns the CORBA PropagationContext (JTS)

Throws:
org.omg.PortableInterceptor.ForwardRequest

decodeCorbaPropagationContext

protected TransactionContext decodeCorbaPropagationContext(org.omg.IOP.ServiceContext sCtx)
decode the Corba Propagation Context and build an internal transaction context

Parameters:
sCtx - ServiceContext