Class OTSManager

java.lang.Object
com.arjuna.ats.jts.OTSManager

public class OTSManager extends Object
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 Details

    • serviceId

      public static final int serviceId
  • Constructor Details

    • OTSManager

      public OTSManager()
  • Method Details

    • get_current

      public static Current get_current() throws org.omg.CORBA.SystemException
      Returns:
      the Current object.
      Throws:
      org.omg.CORBA.SystemException
    • factory

      public static TransactionFactoryImple factory() throws org.omg.CORBA.SystemException
      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

      public static TransactionFactory get_factory() throws org.omg.CORBA.SystemException
      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

      public static final void setORB(ORB theOrb)
    • setPOA

      public static final void setPOA(OA thePoa)