org.apache.openejb.test.stateful
Class BasicStatefulPojoBean

java.lang.Object
  extended by org.apache.openejb.test.stateful.BasicStatefulPojoBean
All Implemented Interfaces:
BasicStatefulBusinessLocal, BasicStatefulBusinessRemote

public class BasicStatefulPojoBean
extends Object
implements BasicStatefulBusinessLocal, BasicStatefulBusinessRemote

Author:
David Blevins, Richard Monson-Haefel, Mohammad Nour El-Din

Constructor Summary
BasicStatefulPojoBean()
           
 
Method Summary
 String businessMethod(String text)
          Maps to BasicStatelessObject.businessMethod
 void create(String name)
           
 Object echo(Object object)
           
 OperationsPolicy getAllowedOperationsReport(String methodName)
          Maps to BasicStatelessObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods.
 Properties getPermissionsReport()
          Maps to BasicStatelessObject.getPermissionsReport Returns a report of the bean's runtime permissions
 Object remove()
          Verify if we can invoke remove() on a stateful session bean as a business method
 String remove(String arg)
           
 void removeBean()
           
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 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

BasicStatefulPojoBean

public BasicStatefulPojoBean()
Method Detail

create

public void create(String name)

removeBean

public void removeBean()

businessMethod

public String businessMethod(String text)
Maps to BasicStatelessObject.businessMethod

Specified by:
businessMethod in interface BasicStatefulBusinessLocal
Specified by:
businessMethod in interface BasicStatefulBusinessRemote
Returns:
See Also:
BasicStatelessObject.businessMethod(java.lang.String)

echo

public Object echo(Object object)
Specified by:
echo in interface BasicStatefulBusinessLocal
Specified by:
echo in interface BasicStatefulBusinessRemote

throwApplicationException

public void throwApplicationException()
                               throws ApplicationException
Throws an ApplicationException when invoked

Specified by:
throwApplicationException in interface BasicStatefulBusinessLocal
Specified by:
throwApplicationException in interface BasicStatefulBusinessRemote
Throws:
ApplicationException

throwSystemException_NullPointer

public 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.

Specified by:
throwSystemException_NullPointer in interface BasicStatefulBusinessLocal
Specified by:
throwSystemException_NullPointer in interface BasicStatefulBusinessRemote

getPermissionsReport

public Properties getPermissionsReport()
Maps to BasicStatelessObject.getPermissionsReport Returns a report of the bean's runtime permissions

Specified by:
getPermissionsReport in interface BasicStatefulBusinessLocal
Specified by:
getPermissionsReport in interface BasicStatefulBusinessRemote
Returns:
See Also:
BasicStatelessObject.getPermissionsReport()

getAllowedOperationsReport

public OperationsPolicy getAllowedOperationsReport(String methodName)
Maps to BasicStatelessObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods.

Specified by:
getAllowedOperationsReport in interface BasicStatefulBusinessLocal
Specified by:
getAllowedOperationsReport in interface BasicStatefulBusinessRemote
Parameters:
methodName - The method for which to get the allowed opperations report
Returns:
See Also:
BasicStatelessObject.getAllowedOperationsReport(java.lang.String)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws javax.ejb.EJBException,
                              RemoteException
Throws:
javax.ejb.EJBException
RemoteException

remove

public Object remove()
Description copied from interface: BasicStatefulBusinessLocal
Verify if we can invoke remove() on a stateful session bean as a business method

Specified by:
remove in interface BasicStatefulBusinessLocal
Specified by:
remove in interface BasicStatefulBusinessRemote

remove

public String remove(String arg)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.