org.openorb.ots.Impl
Class TransactionFactory
java.lang.Object
org.omg.PortableServer.Servant
org.omg.CosTransactions.TransactionFactoryPOA
org.openorb.ots.Impl.TransactionFactory
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, TransactionFactoryOperations
public class TransactionFactory
- extends TransactionFactoryPOA
This class is the implementation of the transaction factory.
- Author:
- Jerome Daniel
Constructor Summary |
TransactionFactory(Manager manager,
org.omg.PortableServer.POA poa,
org.omg.PortableServer.POA recovery_poa,
org.apache.avalon.framework.logger.Logger logger)
Constructor |
Method Summary |
Control |
create(int time_out)
A new top-level transaction is created and a Control object is returned. |
Control |
recreate(PropagationContext ctx)
A new representation is created for an existing transaction defined by the
PropagationContext and a Control object is returned. |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionFactory
public TransactionFactory(Manager manager,
org.omg.PortableServer.POA poa,
org.omg.PortableServer.POA recovery_poa,
org.apache.avalon.framework.logger.Logger logger)
- Constructor
create
public Control create(int time_out)
- A new top-level transaction is created and a Control object is returned. The Control
object can be used to manage or to control participation in the new transaction. An
implementation of the Transaction Service may restrict the ability for the Control
object to be transmitted to or used in other execution environments; at a minimum, it
can be used by the client thread.
If the parameter has a nonzero value n, then the new transaction will be subject to being
rolled back if it does not complete before n seconds have elapsed. If the parameter is zero,
then no application specified time-out is established.
recreate
public Control recreate(PropagationContext ctx)
- A new representation is created for an existing transaction defined by the
PropagationContext and a Control object is returned. The Control object can be used
to manage or to control participation in the transaction. An implementation of the
Transaction Service which supports interposition uses recreate to create a new
representation of the transaction being imported, subordinate to the representation in ctx.
The recreate operation can also be used to import a transaction which originated outside of
the Transaction Service.