Package com.sun.jts.CosTransactions
Class DefaultTransactionService
- java.lang.Object
-
- com.sun.jts.CosTransactions.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringJTS_SERVER_IDstatic StringJTS_XA_SERVER_NAME
-
Constructor Summary
Constructors Constructor Description DefaultTransactionService()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.omg.CosTransactions.Currentget_current()Obtain the implementation of the Current interface provided by the transaction service implementation.voididentify_ORB(org.omg.CORBA.ORB orb, org.omg.CORBA.TSIdentification ident, Properties properties)Request the transaction service to identify itself with a communication manager.static booleanisActive()static booleanisORBAvailable()booleanisProxy(org.omg.CORBA.Object obj)Determines whether the given object is a proxy.static voidsetServerName(Properties properties)static voidshutdown(boolean immediate)Request the transaction service to stop any further transactional activity.
-
-
-
Field Detail
-
JTS_SERVER_ID
public static final String JTS_SERVER_ID
- See Also:
- Constant Field Values
-
JTS_XA_SERVER_NAME
public static final String JTS_XA_SERVER_NAME
- See Also:
- Constant Field Values
-
-
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()
-
-