org.apache.openejb.test.mdb
Class BasicMdbBean

java.lang.Object
  extended by org.apache.openejb.test.mdb.BasicMdbBean
All Implemented Interfaces:
Serializable, javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener, BasicMdbObject

public class BasicMdbBean
extends Object
implements BasicMdbObject, javax.ejb.MessageDrivenBean, javax.jms.MessageListener

Author:
David Blevins, Richard Monson-Haefel
See Also:
Serialized Form

Field Summary
protected  MdbInvoker mdbInvoker
           
 
Constructor Summary
BasicMdbBean()
           
 
Method Summary
 String businessMethod(String text)
          Maps to BasicStatelessObject.businessMethod
 void ejbCreate()
           
 void ejbRemove()
           
 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
 void onMessage(javax.jms.Message message)
           
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
           
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mdbInvoker

protected MdbInvoker mdbInvoker
Constructor Detail

BasicMdbBean

public BasicMdbBean()
Method Detail

setMessageDrivenContext

public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
                             throws javax.ejb.EJBException
Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException

onMessage

public void onMessage(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener

businessMethod

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

Specified by:
businessMethod in interface BasicMdbObject
Returns:
string

throwApplicationException

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

Specified by:
throwApplicationException in interface BasicMdbObject
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 BasicMdbObject

getPermissionsReport

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

Specified by:
getPermissionsReport in interface BasicMdbObject
Returns:

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 BasicMdbObject
Parameters:
methodName - The method for which to get the allowed opperations report
Returns:

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException
Specified by:
ejbRemove in interface javax.ejb.MessageDrivenBean
Throws:
javax.ejb.EJBException

testAllowedOperations

protected void testAllowedOperations(String methodName)


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