Package com.arjuna.ats.jts
Class OTSManager
java.lang.Object
com.arjuna.ats.jts.OTSManager
This class is essentially here for convenience purposes, and until
all ORBs provide a means to set their initial references for Current
and the TransactionFactory.
- Since:
- JTS 1.0.
- Version:
- $Id: OTSManager.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark_little@hp.com)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
destroyControl
(ControlImple control) Used to destroy a transaction control.static void
destroyControl
(Control control) Destroy the transaction control.static TransactionFactoryImple
factory()
static Current
static TransactionFactory
static final int
static final int
static final void
setLocalSlotId
(int slotId) static final void
static final void
static final void
setReceivedSlotId
(int slotId)
-
Field Details
-
serviceId
public static final int serviceId
-
-
Constructor Details
-
OTSManager
public OTSManager()
-
-
Method Details
-
get_current
- Returns:
- the Current object.
- Throws:
org.omg.CORBA.SystemException
-
factory
- Returns:
- the TransactionFactory object implementation. This has the advantage of not needing to register the object withm the ORB, which can affect performance.
- Throws:
org.omg.CORBA.SystemException
-
get_factory
- Returns:
- the TransactionFactory object.
- Throws:
org.omg.CORBA.SystemException
-
destroyControl
public static void destroyControl(ControlImple control) throws ActiveTransaction, ActiveThreads, BadControl, Destroyed, org.omg.CORBA.SystemException Used to destroy a transaction control. Normally garbage collection will take care of this, but in certain circumstances (e.g., a context is propagated implicitly but we do not use interposition and we have to manufacture a local control object) it is not possible for the OTS to know when controls can be removed. This is a problem with the specification and CORBA in general.- Throws:
ActiveTransaction
ActiveThreads
BadControl
Destroyed
org.omg.CORBA.SystemException
-
destroyControl
public static void destroyControl(Control control) throws ActiveTransaction, ActiveThreads, BadControl, Destroyed, org.omg.CORBA.SystemException Destroy the transaction control.- Throws:
ActiveTransaction
ActiveThreads
BadControl
Destroyed
org.omg.CORBA.SystemException
-
setLocalSlotId
public static final void setLocalSlotId(int slotId) -
getLocalSlotId
public static final int getLocalSlotId() -
setReceivedSlotId
public static final void setReceivedSlotId(int slotId) -
getReceivedSlotId
public static final int getReceivedSlotId() -
setORB
-
setPOA
-