org.apache.openejb.test.stateless
Interface BasicStatelessObject

All Superinterfaces:
javax.ejb.EJBObject, Remote

public interface BasicStatelessObject
extends javax.ejb.EJBObject

Author:
David Blevins, Richard Monson-Haefel

Method Summary
 String businessMethod(String text)
          Reverses the string passed in then returns it
 OperationsPolicy getAllowedOperationsReport(String methodName)
          Returns a report of the allowed opperations for one of the bean's methods.
 Properties getPermissionsReport()
          Returns a report of the bean's runtime permissions
 String remove(String obj)
           
 void scheduleTimer(String name)
          Schedules a timer with the specified name.
 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

String businessMethod(String text)
                      throws RemoteException
Reverses the string passed in then returns it

Returns:
string
Throws:
RemoteException

throwApplicationException

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

Throws:
RemoteException
ApplicationException

throwSystemException_NullPointer

void throwSystemException_NullPointer()
                                      throws 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:
RemoteException

getPermissionsReport

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

Returns:
properties
Throws:
RemoteException

getAllowedOperationsReport

OperationsPolicy getAllowedOperationsReport(String methodName)
                                            throws 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:
operations policy
Throws:
RemoteException

scheduleTimer

void scheduleTimer(String name)
                   throws RemoteException
Schedules a timer with the specified name. This name is used to notify via the TimerSyncBean.

Parameters:
name - the name used to notify via the TimerSyncBean
Throws:
RemoteException

remove

String remove(String obj)
              throws RemoteException
Throws:
RemoteException


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