org.objectweb.jeremie.services.handler.CosTransactions
Class JRMITSHandler
- Service, TSIdentification
public class JRMITSHandler
Provides an implementation of a CORBA COS Transaction service handler
that conforms to the CosTSPortability module but that uses Java specific
(i.e., non CORBA) means of encoding and decoding transaction contexts.
protected MarshallerFactory | mf - The marshaller factory parameter used to encode/decode contexts.
|
JRMITSHandler(int service_id, Sender sender, Receiver receiver, MarshallerFactory marshaller_factory) - Builds a new Jeremie transaction service handler instance.
|
JRMITSHandler(Sender sender, Receiver receiver, MarshallerFactory marshaller_factory) - Builds a new Jeremie transaction service handler instance.
|
mf
protected MarshallerFactory mf
The marshaller factory parameter used to encode/decode contexts.
JRMITSHandler
public JRMITSHandler(int service_id,
Sender sender,
Receiver receiver,
MarshallerFactory marshaller_factory)
throws JonathanException
Builds a new Jeremie transaction service handler instance.
If the transaction service id value equals
Integer.MAX_VALUE, then the value defaults to
service_id
;
service_id
- the transaction service idsender
- a (possibly null) Sender
instance;receiver
- a possibly null Receiver
instance;marshaller_factory
- a marshaller factory
JRMITSHandler
public JRMITSHandler(Sender sender,
Receiver receiver,
MarshallerFactory marshaller_factory)
throws JonathanException
Builds a new Jeremie transaction service handler instance.
sender
- a (possibly null) Sender
instance;receiver
- a possibly null Receiver
instance;marshaller_factory
- a marshaller factory
decodeContext
protected PropagationContext decodeContext(ServiceContext sc)
Decodes a Transaction Service propagation context from an IOP service
context.
- decodeContext in interface TSHandler
- the decoded propagation context.
encodeContext
protected ServiceContext encodeContext(PropagationContext ctx)
Encodes a Transaction Service propagation context into an IOP service
context.
- encodeContext in interface TSHandler
ctx
- the propagation context to be encoded.
- the resulting IOP service context.