public abstract class BusinessActivityManager extends Object
| Constructor and Description |
|---|
BusinessActivityManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
WrongStateExceptionUnknownTransactionExceptionSystemExceptionpublic abstract BAParticipantManager enlistForBusinessAgreementWithCoordinatorCompletion(BusinessAgreementWithCoordinatorCompletionParticipant bawcp, String id) throws WrongStateException, UnknownTransactionException, SystemException
WrongStateExceptionUnknownTransactionExceptionSystemExceptionpublic abstract void resume(TxContext txContext) throws UnknownTransactionException, SystemException
public abstract TxContext suspend() throws SystemException
SystemExceptionpublic abstract TxContext currentTransaction() throws SystemException
SystemExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.