|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.txbridge.ba.BATransactionManager
public class BATransactionManager
This is the main component - the Business Activity Transaction Manager. It is responsible for associating fully unique task identifiers to different invocations. It also knows about all existing components responsible for single transactions.
| Field Summary | |
|---|---|
private static BATransactionManager |
baTransactionManager
|
private com.arjuna.mw.wst.BusinessActivityManager |
businessActivityManager
|
private static org.apache.log4j.Logger |
log
|
private ServiceInformationManager |
serviceManager
|
private java.util.concurrent.ConcurrentMap<java.lang.String,SingleTransactionManager> |
singleTransactionManagers
|
| Constructor Summary | |
|---|---|
private |
BATransactionManager()
|
| Method Summary | |
|---|---|
void |
cleanInvocation(TaskDescription taskDesc)
This method is invoked if the business logic could not completeTask and the fault is to be propagated to the client. |
void |
closeTransaction(java.lang.String txId)
This method cleans data associated with a given transaction. |
void |
compensateTransaction(java.lang.String txId)
This method compensates a transaction with a given ID. |
void |
completeInvocation(TaskDescription taskDesc,
java.lang.Object[] arguments,
java.lang.Object returnObject)
This method completes the invocation of a service within a scope of a transaction. |
static BATransactionManager |
getSingletonInstance()
Returns the instance of the BATRansactionManager object. |
TaskDescription |
handleInvocation(java.lang.reflect.Method method)
This method handles a transaction for this invocation of a method. |
boolean |
isBAPresent()
This method returns true if there is currently a Business Activity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.log4j.Logger log
private static volatile BATransactionManager baTransactionManager
private com.arjuna.mw.wst.BusinessActivityManager businessActivityManager
private ServiceInformationManager serviceManager
private java.util.concurrent.ConcurrentMap<java.lang.String,SingleTransactionManager> singleTransactionManagers
| Constructor Detail |
|---|
private BATransactionManager()
| Method Detail |
|---|
public static BATransactionManager getSingletonInstance()
public boolean isBAPresent()
throws com.arjuna.wst.SystemException
com.arjuna.wst.SystemException - if it is not possible to get current transaction.
public TaskDescription handleInvocation(java.lang.reflect.Method method)
throws TransactionProcessingException
method - is the method which is being invoked.
TransactionProcessingException - if there is a problem with processing a transactionpublic void compensateTransaction(java.lang.String txId)
txId - is the ID of the transaction which should be compensated.public void closeTransaction(java.lang.String txId)
txId - is the ID of the transaction which should be finished.
public void completeInvocation(TaskDescription taskDesc,
java.lang.Object[] arguments,
java.lang.Object returnObject)
throws TransactionProcessingException
taskDesc - describes the task.arguments - is the list of the arguments for this service.returnObject - is the return object of this service.
TransactionProcessingException - if it was impossible to completeTask invocation.
public void cleanInvocation(TaskDescription taskDesc)
throws TransactionProcessingException
taskDesc - is the description of the task.
TransactionProcessingException - if cleaning the invocation was not successful.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||