org.ow2.jonas.tm.jotm.ots
Class OTSInterceptor
java.lang.Object
org.omg.CORBA.LocalObject
org.ow2.jonas.tm.jotm.ots.OTSInterceptor
- All Implemented Interfaces:
- Object
- Direct Known Subclasses:
- OTSClientTransactionInterceptor, OTSServerTransactionInterceptor
public abstract class OTSInterceptor
- extends LocalObject
Field Summary |
protected static int |
TX_CTX_ID
Service context identifier. |
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 |
TX_CTX_ID
protected static final int TX_CTX_ID
- Service context identifier.
- See Also:
- Constant Field Values
OTSInterceptor
public OTSInterceptor(ORBInitInfo info)
- Constructor.
- Parameters:
info
- ORB Configuration object
create_any
protected Any create_any()
throws InconsistentTypeCode
- Create an
Any
from PropagationContext
type.
- Returns:
Any
instance for PropagationContext
- Throws:
InconsistentTypeCode
buildCorbaPropagationContext
protected ServiceContext buildCorbaPropagationContext(org.objectweb.jotm.TransactionContext txCtx)
throws ForwardRequest
- Build and returns the CORBA PropagationContext (JTS) from a JOTM
TransactionContext
.
- Parameters:
txCtx
- JOTM TransactionContext
to be "serialized"
- Returns:
- the
ServiceContext
built from TransactionContext
- Throws:
ForwardRequest
decodeCorbaPropagationContext
protected org.objectweb.jotm.TransactionContext decodeCorbaPropagationContext(ServiceContext sCtx)
- Decode the Corba Propagation Context and build an internal transaction context.
- Parameters:
sCtx
- ServiceContext
- Returns:
- TransactionContext Rebuilt JOTM
TransactionContext
from OTS
transaction ServiceContext
Copyright © 2010 OW2 Consortium. All Rights Reserved.