|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageBeanListener
Lifecycle contract for a single MessageBeanListener. Implemented by the MessageBeanContainer and called by the MessageBeanClient for each message delivery. Each message delivery MUST call each of the three methods exactly once, in the same thread, and in the following order : 1. beforeMessageDelivery 2. deliverMessage 3. afterMessageDelivery
| Method Summary | |
|---|---|
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)
|
| Method Detail |
|---|
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 imported
Object 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()
ResourceHandle getResourceHandle()
void setResourceHandle(ResourceHandle handle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||