com.caucho.ejb.message
Class MessageListenerAdapter

java.lang.Object
  extended by com.caucho.ejb.message.MessageListenerAdapter
All Implemented Interfaces:
java.io.Serializable, EnterpriseBean, MessageDrivenBean, MessageListener

public class MessageListenerAdapter
extends java.lang.Object
implements MessageListener, MessageDrivenBean

See Also:
Serialized Form

Constructor Summary
MessageListenerAdapter(java.lang.Object listener)
           
 
Method Summary
 void ejbCreate()
           
 void ejbRemove()
           
 java.lang.Object getListener()
           
 void onMessage(Message message)
           
 void setMessageDrivenContext(MessageDrivenContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageListenerAdapter

public MessageListenerAdapter(java.lang.Object listener)
                       throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException
Method Detail

getListener

public java.lang.Object getListener()

onMessage

public void onMessage(Message message)
Specified by:
onMessage in interface MessageListener

ejbCreate

public void ejbCreate()
               throws java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

ejbRemove

public void ejbRemove()
               throws EJBException
Specified by:
ejbRemove in interface MessageDrivenBean
Throws:
EJBException

setMessageDrivenContext

public void setMessageDrivenContext(MessageDrivenContext ctx)
                             throws EJBException
Specified by:
setMessageDrivenContext in interface MessageDrivenBean
Throws:
EJBException