public class BMTStatefulBean extends Object implements javax.ejb.SessionBean
| Constructor and Description |
|---|
BMTStatefulBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
businessMethod(String text)
Maps to BasicStatefulObject.businessMethod
|
void |
ejbActivate()
The activate method is called when the instance is activated
from its "passive" state.
|
void |
ejbCreateObject(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(String methodName)
Maps to BasicStatefulObject.getAllowedOperationsReport
Returns a report of the allowed opperations
for one of the bean's methods.
|
Properties |
getPermissionsReport()
Maps to BasicStatefulObject.getPermissionsReport
Returns a report of the bean's
runtime permissions
|
String |
remove(String arg) |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Set the associated session context.
|
protected void |
testAllowedOperations(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.
|
public void ejbCreateObject(String name) throws javax.ejb.CreateException
name - javax.ejb.CreateExceptionBasicStatefulHome.createObject(java.lang.String)public String businessMethod(String text)
BasicStatefulObject.businessMethod(java.lang.String)public void throwApplicationException()
throws ApplicationException
ApplicationExceptionpublic void throwSystemException_NullPointer()
public Properties getPermissionsReport()
BasicStatefulObject.getPermissionsReport()public OperationsPolicy getAllowedOperationsReport(String methodName)
methodName - The method for which to get the allowed opperations reportBasicStatefulObject.getAllowedOperationsReport(java.lang.String)public void setSessionContext(javax.ejb.SessionContext ctx)
throws javax.ejb.EJBException,
RemoteException
setSessionContext in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbRemove()
throws javax.ejb.EJBException,
RemoteException
ejbRemove in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbActivate()
throws javax.ejb.EJBException,
RemoteException
ejbActivate in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbPassivate()
throws javax.ejb.EJBException,
RemoteException
ejbPassivate in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionprotected void testAllowedOperations(String methodName)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.