FileDocCategorySizeDatePackage
MessageBeanListenerImpl.javaAPI DocGlassfish v2 API3287Fri May 04 22:32:58 BST 2007com.sun.ejb.containers

MessageBeanListenerImpl

public class MessageBeanListenerImpl extends Object implements com.sun.ejb.MessageBeanListener
author
Kenneth Saks

Fields Summary
private MessageBeanContainer
container_
private com.sun.enterprise.resource.ResourceHandle
resourceHandle_
Constructors Summary
MessageBeanListenerImpl(MessageBeanContainer container, com.sun.enterprise.resource.ResourceHandle handle)

        container_ = container;

        // can be null
        resourceHandle_ = handle;
    
Methods Summary
public voidafterMessageDelivery()

        try {
            container_.afterMessageDelivery(resourceHandle_);
        } finally {
            container_.onLeavingContainer();    //Notify Callflow Agent
        }
    
public voidbeforeMessageDelivery(java.lang.reflect.Method method, boolean txImported)

        container_.onEnteringContainer();   //Notify Callflow Agent
        container_.beforeMessageDelivery(method, txImported, resourceHandle_);
    
public java.lang.ObjectdeliverMessage(java.lang.Object[] params)

        return container_.deliverMessage(params);
    
public com.sun.enterprise.resource.ResourceHandlegetResourceHandle()

        return resourceHandle_;
    
public voidsetResourceHandle(com.sun.enterprise.resource.ResourceHandle handle)

        resourceHandle_ = handle;