|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrunx.tyrex.tm.TransactionDomain
A transaction domain provides centralized management for transactions.
A transaction domain defines the policy for all transactions created from that domain, such as default timeout, maximum number of open transactions, IIOP support, and journaling. In addition, the domain maintains resource managers such as JDBC data sources and JCA connectors.
The application server obtains a transaction manager or user transaction object, and managed resources from the transaction domain.
Transaction domains are created from a domain configuration file. For more information about domain configuration files, refer to the relevant documentation and domain.xsd.
A newly created transaction domain is in the state READY.
The recover method must be called in order to make it
active (ACTIVE). The domain can be deactivated by calling
terminate.
| Field Summary | |
static int |
ACTIVE
Domain active status. |
static int |
READY
Domain ready status. |
static int |
RECOVERING
Domain recovery status. |
static int |
TERMINATED
Domain terminated status. |
| Constructor Summary | |
TransactionDomain()
|
|
| Method Summary | |
abstract void |
addInterceptor(TransactionInterceptor interceptor)
Adds a transaction interceptor to this transaction domain. |
abstract DomainMetrics |
getDomainMetrics()
Returns the transaction domain metrics. |
abstract java.lang.String |
getDomainName()
Returns the transaction domain name. |
abstract int |
getState()
Returns the transaction domain state. |
abstract org.omg.CosTransactions.TransactionFactory |
getTransactionFactory()
Returns an OTS transaction factory for this transaction domain. |
abstract javax.transaction.TransactionManager |
getTransactionManager()
Returns a transaction manager for this transaction domain. |
abstract javax.transaction.UserTransaction |
getUserTransaction()
Returns a user transaction for this transaction domain. |
void |
logError(java.lang.String msg,
java.lang.Throwable e)
|
abstract void |
recover()
Called to initiate recovery. |
abstract void |
removeInterceptor(TransactionInterceptor interceptor)
Removes a transaction interceptor to this transaction domain. |
abstract void |
terminate()
Terminates the transaction domain. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int READY
public static final int RECOVERING
public static final int ACTIVE
public static final int TERMINATED
| Constructor Detail |
public TransactionDomain()
| Method Detail |
public void logError(java.lang.String msg,
java.lang.Throwable e)
public abstract int getState()
The initial state for a transaction domain is READY. The domain
transitions to ACTIVE after recovery has completed by calling
recover.
The domain transitions to TERMINATED after it has been terminated
by calling terminate.
public abstract void recover()
throws RecoveryException
RecoveryException - A chain of errors reported during recoverypublic abstract javax.transaction.TransactionManager getTransactionManager()
The transaction managed can be used to begin, commit and rollback transactions in this domain only.
Calling this method multiple times will return the same instance of the transaction manager.
public abstract javax.transaction.UserTransaction getUserTransaction()
The user transaction can be used to begin, commit and rollback transactions in this domain only.
Calling this method multiple times will return the same instance of the user transaction.
public abstract org.omg.CosTransactions.TransactionFactory getTransactionFactory()
The transaction factory can be used to create and re-create OTS transactions in this domain only. It is also used to identify the ORB by implementing TransactionService.
Calling this method multiple times will return the same instance of the transaction factory.
public abstract void terminate()
public abstract DomainMetrics getDomainMetrics()
public abstract java.lang.String getDomainName()
public abstract void addInterceptor(TransactionInterceptor interceptor)
interceptor - The transaction interceptorpublic abstract void removeInterceptor(TransactionInterceptor interceptor)
interceptor - The transaction interceptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||