public class BasicMdbBean extends Object implements BasicMdbObject, javax.ejb.MessageDrivenBean, javax.jms.MessageListener
| Modifier and Type | Field and Description |
|---|---|
protected MdbInvoker |
mdbInvoker |
| Constructor and Description |
|---|
BasicMdbBean() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected MdbInvoker mdbInvoker
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
throws javax.ejb.EJBException
setMessageDrivenContext in interface javax.ejb.MessageDrivenBeanjavax.ejb.EJBExceptionpublic void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenerpublic String businessMethod(String text)
businessMethod in interface BasicMdbObjectpublic void throwApplicationException()
throws ApplicationException
throwApplicationException in interface BasicMdbObjectApplicationExceptionpublic void throwSystemException_NullPointer()
throwSystemException_NullPointer in interface BasicMdbObjectpublic Properties getPermissionsReport()
getPermissionsReport in interface BasicMdbObjectpublic OperationsPolicy getAllowedOperationsReport(String methodName)
getAllowedOperationsReport in interface BasicMdbObjectmethodName - The method for which to get the allowed opperations reportpublic void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbRemove()
throws javax.ejb.EJBException
ejbRemove in interface javax.ejb.MessageDrivenBeanjavax.ejb.EJBExceptionprotected void testAllowedOperations(String methodName)
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.