Class DefaultTransactionService


  • public class DefaultTransactionService
    extends Object
    The DefaultTransactionService is our implementation of the com.sun.CosTransactions.TransactionService class.

    The TransactionService abstract class describes the packaging of a Java Transaction Service implementation. Each implementation should be packaged as a subclass of the TransactionService class.

    Version:
    0.01
    Author:
    Simon Holdsworth, IBM Corporation, mvatkina
    • Constructor Detail

      • DefaultTransactionService

        public DefaultTransactionService()
        Default constructor.
    • Method Detail

      • isActive

        public static boolean isActive()
        Returns:
        true, if transaction manager is available.
      • get_current

        public org.omg.CosTransactions.Current get_current()
        Obtain the implementation of the Current interface provided by the transaction service implementation.
        Returns:
        An instance of the Current class
      • identify_ORB

        public void identify_ORB​(org.omg.CORBA.ORB orb,
                                 org.omg.CORBA.TSIdentification ident,
                                 Properties properties)
        Request the transaction service to identify itself with a communication manager.

        Multiple communication managers may request a transaction service to identify itself.

        Parameters:
        orb - The ORB to be used for communication.
        ident - The TSIdentification object with which the Sender and Receiver must be registered.
        properties - The Properties with which the ORB was initialised.
      • setServerName

        public static void setServerName​(Properties properties)
      • shutdown

        public static void shutdown​(boolean immediate)
        Request the transaction service to stop any further transactional activity.
        Parameters:
        immediate - Indicates whether to ignore running transactions.
      • isProxy

        public final boolean isProxy​(org.omg.CORBA.Object obj)
        Determines whether the given object is a proxy.
        Parameters:
        obj - The potential proxy.
        Returns:
        Indicates whether the object is a proxy.
      • isORBAvailable

        public static boolean isORBAvailable()