|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.util.ejb.EnterpriseSupport (src)
org.jboss.test.util.ejb.SessionSupport (src)
org.jboss.test.txiiop.ejb.StatefulSessionBean
The stateful session ejb implementation
Field Summary |
Fields inherited from class org.jboss.test.util.ejb.SessionSupport (src) |
sessionCtx |
Constructor Summary | |
StatefulSessionBean()
|
Method Summary | |
void |
afterBegin()
The afterBegin method notifies a session Bean instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction. |
void |
afterCompletion(boolean isCommited)
The afterCompletion method notifies a session Bean instance that a transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back. |
void |
beforeCompletion()
The beforeCompletion method notifies a session Bean instance that a transaction is about to be committed. |
void |
decCounter()
|
void |
ejbCreate(java.lang.String testName)
|
int |
getCounter()
|
void |
incCounter()
|
void |
setCounter(int value)
|
java.lang.String |
txMandatoryMethod(java.lang.String msg)
|
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src) |
ejbActivate, ejbCreate, ejbPassivate, ejbRemove, setSessionContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatefulSessionBean()
Method Detail |
public void ejbCreate(java.lang.String testName)
public void afterBegin()
SessionSynchronization (src)
The afterBegin method notifies a session Bean instance that a new transaction has started, and that the subsequent business methods on the instance will be invoked in the context of the transaction.
The instance can use this method, for example, to read data from a database and cache the data in the instance fields.
This method executes in the proper transaction context.
afterBegin
in interface SessionSynchronization (src)
public void afterCompletion(boolean isCommited)
SessionSynchronization (src)
The afterCompletion method notifies a session Bean instance that a transaction commit protocol has completed, and tells the instance whether the transaction has been committed or rolled back.
This method executes with no transaction context.
This method executes with no transaction context.
afterCompletion
in interface SessionSynchronization (src)
isCommited
- - True if the transaction has been committed, false if is has been rolled back.public void beforeCompletion()
SessionSynchronization (src)
The beforeCompletion method notifies a session Bean instance that a transaction is about to be committed. The instance can use this method, for example, to write any cached data to a database.
This method executes in the proper transaction context.
Note: The instance may still cause the container to rollback the transaction by invoking the setRollbackOnly() method on the instance context, or by throwing an exception.
beforeCompletion
in interface SessionSynchronization (src)
public void incCounter()
public void decCounter()
public int getCounter()
public void setCounter(int value)
public java.lang.String txMandatoryMethod(java.lang.String msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |