|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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.cts.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 |
createLocalEntity(AccountPK (src) pk,
java.lang.String personsName)
|
void |
createSessionHandle()
|
void |
createSessionRef()
|
void |
createStatefulSessionHandle(java.lang.String testName)
|
void |
decCounter()
|
void |
ejbActivate()
The activate method is called when the instance is activated from its "passive" state. |
void |
ejbCreate(java.lang.String testName)
|
void |
ejbCreateAlt(java.lang.String testName)
|
void |
ejbPassivate()
The passivate method is called before the instance enters the "passive" state. |
BeanContextInfo (src) |
getBeanContextInfo()
|
int |
getCounter()
|
Handle (src) |
getHandle()
|
java.lang.String |
getTestName()
|
boolean |
getWasActivated()
|
boolean |
getWasPassivated()
|
void |
incCounter()
|
void |
loopbackTest()
|
void |
loopbackTest(EJBObject (src) obj)
|
java.lang.String |
method1(java.lang.String msg)
|
void |
ping()
|
java.lang.String |
readAndRemoveEntity()
|
void |
setCounter(int value)
|
void |
sleep(long wait)
|
java.lang.String |
useSessionHandle(java.lang.String arg)
|
java.lang.String |
useSessionRef()
|
void |
useStatefulSessionHandle()
|
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src) |
ejbCreate, 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 ejbCreateAlt(java.lang.String testName)
public void ejbActivate()
SessionBean (src)
The activate method is called when the instance is activated from its "passive" state. The instance should acquire any resource that it has released earlier in the ejbPassivate() method.
This method is called with no transaction context.
ejbActivate
in interface SessionBean (src)
ejbActivate
in class SessionSupport (src)
public void ejbPassivate()
SessionBean (src)
The passivate method is called before the instance enters the "passive" state. The instance should release any resources that it can re-acquire later in the ejbActivate() method.
After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state.
This method is called with no transaction context.
ejbPassivate
in interface SessionBean (src)
ejbPassivate
in class SessionSupport (src)
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 java.lang.String getTestName()
public java.lang.String method1(java.lang.String msg)
public void incCounter()
public void decCounter()
public int getCounter()
public void setCounter(int value)
public BeanContextInfo (src) getBeanContextInfo() throws java.rmi.RemoteException
java.rmi.RemoteException
public void loopbackTest() throws java.rmi.RemoteException
java.rmi.RemoteException
public void loopbackTest(EJBObject (src) obj) throws java.rmi.RemoteException
java.rmi.RemoteException
public void ping()
public void sleep(long wait)
public boolean getWasActivated()
public boolean getWasPassivated()
public void createLocalEntity(AccountPK (src) pk, java.lang.String personsName) throws CreateException (src)
CreateException (src)
public java.lang.String readAndRemoveEntity() throws RemoveException (src)
RemoveException (src)
public void createSessionHandle()
public java.lang.String useSessionHandle(java.lang.String arg)
public void createStatefulSessionHandle(java.lang.String testName)
public void useStatefulSessionHandle()
public void createSessionRef() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String useSessionRef() throws java.rmi.RemoteException
java.rmi.RemoteException
public Handle (src) getHandle()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |