|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.test.stateful.BasicStatefulBean
public class BasicStatefulBean
| Constructor Summary | |
|---|---|
BasicStatefulBean()
|
|
| 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 committed)
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. |
java.lang.String |
businessMethod(java.lang.String text)
Maps to BasicStatefulObject.businessMethod |
void |
ejbActivate()
The activate method is called when the instance is activated from its "passive" state. |
void |
ejbCreate(java.lang.String name)
Maps to BasicStatefulHome.create |
void |
ejbPassivate()
The passivate method is called before the instance enters the "passive" state. |
void |
ejbRemove()
A container invokes this method before it ends the life of the session object. |
OperationsPolicy |
getAllowedOperationsReport(java.lang.String methodName)
Maps to BasicStatefulObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods. |
java.util.Properties |
getPermissionsReport()
Maps to BasicStatefulObject.getPermissionsReport Returns a report of the bean's runtime permissions |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Set the associated session context. |
protected void |
testAllowedOperations(java.lang.String methodName)
|
void |
throwApplicationException()
Throws an ApplicationException when invoked |
void |
throwSystemException_NullPointer()
Throws a java.lang.NullPointerException when invoked This is a system exception and should result in the destruction of the instance and invalidation of the remote reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicStatefulBean()
| Method Detail |
|---|
public void ejbCreate(java.lang.String name)
throws javax.ejb.CreateException
name -
javax.ejb.CreateExceptionBasicStatefulHome.createpublic java.lang.String businessMethod(java.lang.String text)
BasicStatefulObject.businessMethod
public void throwApplicationException()
throws ApplicationException
ApplicationExceptionpublic void throwSystemException_NullPointer()
public java.util.Properties getPermissionsReport()
BasicStatefulObject.getPermissionsReportpublic OperationsPolicy getAllowedOperationsReport(java.lang.String methodName)
methodName - The method for which to get the allowed opperations report
BasicStatefulObject.getAllowedOperationsReport
public void setSessionContext(javax.ejb.SessionContext ctx)
throws javax.ejb.EJBException,
java.rmi.RemoteException
setSessionContext in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteException
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbRemove in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteException
public void ejbActivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbActivate in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteException
public void ejbPassivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbPassivate in interface javax.ejb.SessionBeanjavax.ejb.EJBException
java.rmi.RemoteException
public void afterBegin()
throws javax.ejb.EJBException,
java.rmi.RemoteException
afterBegin in interface javax.ejb.SessionSynchronizationjavax.ejb.EJBException
java.rmi.RemoteException
public void beforeCompletion()
throws javax.ejb.EJBException,
java.rmi.RemoteException
beforeCompletion in interface javax.ejb.SessionSynchronizationjavax.ejb.EJBException
java.rmi.RemoteException
public void afterCompletion(boolean committed)
throws javax.ejb.EJBException,
java.rmi.RemoteException
afterCompletion in interface javax.ejb.SessionSynchronizationjavax.ejb.EJBException
java.rmi.RemoteExceptionprotected void testAllowedOperations(java.lang.String methodName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||