|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.arjuna.mw.wst11.BusinessActivityManager
public abstract class BusinessActivityManager
This is the interface that the core exposes in order to allow different types of participants to be enrolled. The messaging layer continues to work in terms of the registrar, but internally we map to one of these methods. As with UserTransaction a TransactionManager does not represent a specific transaction, but rather is responsible for providing access to an implicit per-thread transaction context.
Constructor Summary | |
---|---|
BusinessActivityManager()
|
Method Summary | |
---|---|
abstract TxContext |
currentTransaction()
The currentTransaction method returns the TxContext for the current transaction, or null if there is none. |
abstract BAParticipantManager |
enlistForBusinessAgreementWithCoordinatorCompletion(BusinessAgreementWithCoordinatorCompletionParticipant bawcp,
String id)
Enlist a participant for the BusinessAgreementWithCoordinatorCompletion protocol. |
abstract BAParticipantManager |
enlistForBusinessAgreementWithParticipantCompletion(BusinessAgreementWithParticipantCompletionParticipant bap,
String id)
Enlist a participant for the BusinessAgreement protocol. |
static BusinessActivityManager |
getBusinessActivityManager()
Get the business activity manager. |
abstract void |
resume(TxContext txContext)
The resume method can be used to (re-)associate a thread with a transaction(s) via its TxContext. |
static void |
setBusinessActivityManager(BusinessActivityManager manager)
Set the business activity manager. |
abstract TxContext |
suspend()
A thread of control may require periods of non-transactionality so that it may perform work that is not associated with a specific transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BusinessActivityManager()
Method Detail |
---|
public static BusinessActivityManager getBusinessActivityManager()
public static void setBusinessActivityManager(BusinessActivityManager manager)
manager
- The business activity manager.public abstract BAParticipantManager enlistForBusinessAgreementWithParticipantCompletion(BusinessAgreementWithParticipantCompletionParticipant bap, String id) throws WrongStateException, UnknownTransactionException, SystemException
WrongStateException
UnknownTransactionException
SystemException
public abstract BAParticipantManager enlistForBusinessAgreementWithCoordinatorCompletion(BusinessAgreementWithCoordinatorCompletionParticipant bawcp, String id) throws WrongStateException, UnknownTransactionException, SystemException
WrongStateException
UnknownTransactionException
SystemException
public abstract void resume(TxContext txContext) throws UnknownTransactionException, SystemException
UnknownTransactionException
SystemException
public abstract TxContext suspend() throws SystemException
SystemException
public abstract TxContext currentTransaction() throws SystemException
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |