public class DefaultTransactionService extends Object
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.
Modifier and Type | Field and Description |
---|---|
static String |
JTS_SERVER_ID |
static String |
JTS_XA_SERVER_NAME |
Constructor and Description |
---|
DefaultTransactionService()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.omg.CosTransactions.Current |
get_current()
Obtain the implementation of the Current interface provided
by the transaction service implementation.
|
void |
identify_ORB(ORB orb,
TSIdentification ident,
Properties properties)
Request the transaction service to identify itself with a communication
manager.
|
static boolean |
isActive() |
static boolean |
isORBAvailable() |
boolean |
isProxy(Object obj)
Determines whether the given object is a proxy.
|
static void |
setServerName(Properties properties) |
static void |
shutdown(boolean immediate)
Request the transaction service to stop any further transactional activity.
|
public static final String JTS_SERVER_ID
public static final String JTS_XA_SERVER_NAME
public DefaultTransactionService()
public static boolean isActive()
public org.omg.CosTransactions.Current get_current()
public void identify_ORB(ORB orb, TSIdentification ident, Properties properties)
Multiple communication managers may request a transaction service to identify itself.
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.public static void setServerName(Properties properties)
public static void shutdown(boolean immediate)
immediate
- Indicates whether to ignore running transactions.public final boolean isProxy(Object obj)
obj
- The potential proxy.public static boolean isORBAvailable()
Copyright © 2020. All rights reserved.