org.openejb.test.stateless
Interface BasicStatelessObject

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface BasicStatelessObject
extends javax.ejb.EJBObject

Author:
David Blevins, Richard Monson-Haefel

Method Summary
 java.lang.String businessMethod(java.lang.String text)
          Reverses the string passed in then returns it
 OperationsPolicy getAllowedOperationsReport(java.lang.String methodName)
          Returns a report of the allowed opperations for one of the bean's methods.
 java.util.Properties getPermissionsReport()
          Returns a report of the bean's runtime permissions
 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 interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

businessMethod

java.lang.String businessMethod(java.lang.String text)
                                throws java.rmi.RemoteException
Reverses the string passed in then returns it

Returns:
Throws:
java.rmi.RemoteException

throwApplicationException

void throwApplicationException()
                               throws java.rmi.RemoteException,
                                      ApplicationException
Throws an ApplicationException when invoked

Throws:
java.rmi.RemoteException
ApplicationException

throwSystemException_NullPointer

void throwSystemException_NullPointer()
                                      throws java.rmi.RemoteException
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.

Throws:
java.rmi.RemoteException

getPermissionsReport

java.util.Properties getPermissionsReport()
                                          throws java.rmi.RemoteException
Returns a report of the bean's runtime permissions

Returns:
Throws:
java.rmi.RemoteException

getAllowedOperationsReport

OperationsPolicy getAllowedOperationsReport(java.lang.String methodName)
                                            throws java.rmi.RemoteException
Returns a report of the allowed opperations for one of the bean's methods.

Parameters:
methodName - The method for which to get the allowed opperations report
Returns:
Throws:
java.rmi.RemoteException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.