|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TransactionManager
The Transaction Manager service acts as a factory for Transaction objects. It will associate these objects with the current thread.
| Method Summary | |
|---|---|
Transaction |
begin()
Create a new open transaction. |
long |
checkTimedoutTransactions()
This method should be called by a watch-dog to ensure, that the transaction manager will clean up the blocked transactions. |
TransactionContext |
getTransaction()
Answer the transaction associated with the current thread. |
TransactionContext[] |
listTransactions(java.lang.String resourceName)
Return a list of transactions that were restored after fail-back and associated with the specified resource name. |
| Method Detail |
|---|
Transaction begin()
java.lang.IllegalStateException - When there already is an open transaction
associated with the current thread.
java.lang.SecurityException - if the called doesn't have the required
permissionsTransactionContext getTransaction()
java.lang.SecurityException - if the called doesn't have the required
permissionsTransactionContext[] listTransactions(java.lang.String resourceName)
resourceName - the class name of the Resource. If this
parameter is null, then all transactions are
listed. This is particularly useful for debugging purpose.
null if
there are no transaction, that are associated with the specified
resource.
java.lang.SecurityException - if the called doesn't have the required
permissionslong checkTimedoutTransactions()
0, which usually means, that there are no
active transactions. However, if you sleep with 'zero' this means
'sleep forever'. So take care!
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||