public interface 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.
|
com.sun.appserv.connectors.internal.api.ResourceHandle |
getResourceHandle() |
void |
setResourceHandle(com.sun.appserv.connectors.internal.api.ResourceHandle handle) |
void beforeMessageDelivery(Method method, boolean txImported)
method - 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 importedObject deliverMessage(Object[] params) throws Throwable
params - 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.void afterMessageDelivery()
com.sun.appserv.connectors.internal.api.ResourceHandle getResourceHandle()
void setResourceHandle(com.sun.appserv.connectors.internal.api.ResourceHandle handle)
Copyright © 2013. All Rights Reserved.