public class MessageBeanListenerImpl extends Object implements MessageBeanListener
| Modifier and Type | Method and Description |
|---|---|
void |
afterMessageDelivery()
Post-delivery notification to the container.
|
void |
beforeMessageDelivery(Method method,
boolean txImported)
Pre-delivery notification to the container.
|
Object |
deliverMessage(Object[] params)
Deliver a message to a message bean instance.
|
ResourceHandle |
getResourceHandle() |
void |
setResourceHandle(ResourceHandle handle) |
public void setResourceHandle(ResourceHandle handle)
setResourceHandle in interface MessageBeanListenerpublic ResourceHandle getResourceHandle()
getResourceHandle in interface MessageBeanListenerpublic void beforeMessageDelivery(Method method, boolean txImported)
MessageBeanListenerbeforeMessageDelivery in interface MessageBeanListenermethod - is the method that will be invoked during deliverMessage.
It is used the container during transaction setup to lookup the
appropriate transaction attribute.txImported - whether a transaction is being importedpublic Object deliverMessage(Object[] params) throws Throwable
MessageBeanListenerdeliverMessage in interface MessageBeanListenerparams - to use of the method invocation. Can be null or
an 0-length array if there are 0 arguments.Throwable - This is either an application exception as thrown
from the message bean instance or a javax.ejb.EJBException in the case
that the bean throws a system exception. Note that exceptions are
*always* propagated, regardless of transaction type.public void afterMessageDelivery()
MessageBeanListenerafterMessageDelivery in interface MessageBeanListenerCopyright © 2019. All rights reserved.