|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.arjuna.mw.wst11.UserBusinessActivity
public abstract class UserBusinessActivity
This is the interface that allows BAs to be started and terminated. The messaging layer converts the messages into calls on this. Importantly, a UserBusinessActivity does not represent a specific transaction, but rather is responsible for providing access to an implicit per-thread transaction context; it is similar to the UserTransaction in the JTA specification. Therefore, all of the UserTransaction methods implicitly act on the current thread of control.
Field Summary | |
---|---|
static int |
ATOMIC_OUTCOME
|
static int |
MIXED_OUTCOME
|
Constructor Summary | |
---|---|
UserBusinessActivity()
|
Method Summary | |
---|---|
abstract void |
begin()
Start a new business activity with atomic outcome. |
abstract void |
begin(int timeout)
Start a new BA with atomic outcome and the specified timeout as its lifetime. |
abstract void |
cancel()
If the BA must undo its work then the cancel method is used. |
abstract void |
close()
The BA is normally terminated by the close method. |
abstract void |
complete()
If participants have registered for the BusinessAgreementWithComplete protocol then they will be expecting the application to inform them when all work intended for them has been sent (and responded to). |
static UserBusinessActivity |
getUserBusinessActivity()
Get the user business activity. |
abstract UserBusinessActivity |
getUserSubordinateBusinessActivity()
get the user subordinate business activity this is a UserBusinessActivity whose begin method will create an interposed BA transaction |
static void |
setUserBusinessActivity(UserBusinessActivity userBusinessActivity)
Set the user business activity. |
abstract String |
transactionIdentifier()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ATOMIC_OUTCOME
public static final int MIXED_OUTCOME
Constructor Detail |
---|
public UserBusinessActivity()
Method Detail |
---|
public static UserBusinessActivity getUserBusinessActivity()
public static void setUserBusinessActivity(UserBusinessActivity userBusinessActivity)
userBusinessActivity
- The user business activity.public abstract UserBusinessActivity getUserSubordinateBusinessActivity()
public abstract void begin() throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void begin(int timeout) throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void close() throws TransactionRolledBackException, UnknownTransactionException, SystemException, WrongStateException
TransactionRolledBackException
UnknownTransactionException
SystemException
WrongStateException
public abstract void cancel() throws UnknownTransactionException, SystemException, WrongStateException
UnknownTransactionException
SystemException
WrongStateException
public abstract void complete() throws UnknownTransactionException, SystemException, WrongStateException
UnknownTransactionException
SystemException
WrongStateException
public abstract String transactionIdentifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |