com.sun.jts.CosTransactions
Class DefaultTransactionService

java.lang.Object
  extended by com.sun.jts.CosTransactions.DefaultTransactionService
All Implemented Interfaces:
com.sun.corba.ee.spi.costransactions.TransactionService

public class DefaultTransactionService
extends java.lang.Object
implements com.sun.corba.ee.spi.costransactions.TransactionService

The DefaultTransactionService is our implemention 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
See Also:

Field Summary
static java.lang.String JTS_SERVER_ID
           
static java.lang.String JTS_XA_SERVER_NAME
           
 
Constructor Summary
DefaultTransactionService()
          Default constructor.
 
Method Summary
 org.omg.CosTransactions.Current get_current()
          Obtain the implementation of the Current interface provided by the transaction service implementation.
 void identify_ORB(org.omg.CORBA.ORB orb, org.omg.CORBA.TSIdentification ident, java.util.Properties properties)
          Request the transaction service to identify itself with a communication manager.
static boolean isActive()
           
static boolean isORBAvailable()
           
 boolean isProxy(org.omg.CORBA.Object obj)
          Determines whether the given object is a proxy.
static void setServerName(java.util.Properties properties)
           
static void shutdown(boolean immediate)
          Request the transaction service to stop any further transactional activity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JTS_SERVER_ID

public static final java.lang.String JTS_SERVER_ID
See Also:
Constant Field Values

JTS_XA_SERVER_NAME

public static final java.lang.String JTS_XA_SERVER_NAME
See Also:
Constant Field Values
Constructor Detail

DefaultTransactionService

public DefaultTransactionService()
Default constructor.

Parameters:
-
See Also:
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.

Specified by:
get_current in interface com.sun.corba.ee.spi.costransactions.TransactionService
Parameters:
-
Returns:
An instance of the Current class
See Also:

identify_ORB

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

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

Specified by:
identify_ORB in interface com.sun.corba.ee.spi.costransactions.TransactionService
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.
See Also:

setServerName

public static void setServerName(java.util.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.
See Also:

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.
See Also:

isORBAvailable

public static boolean isORBAvailable()


Copyright © 2012 GlassFish Community. All Rights Reserved.