org.ow2.easybeans.examples.timerservice
Class MessageDrivenBean

java.lang.Object
  extended by org.ow2.easybeans.examples.timerservice.MessageDrivenBean
All Implemented Interfaces:
MessageListener

public class MessageDrivenBean
extends java.lang.Object
implements MessageListener

Example of Message Driven Bean.
This is an JMS MDB, implementing the MessageListener interface.

Author:
Florent Benoit

Constructor Summary
MessageDrivenBean()
           
 
Method Summary
 void onMessage(Message message)
          Passes a message to the listener.
 void theMDBtimerMethod(Timer timer)
          Timeout method that will be called by the timer service when a timer is expiring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDrivenBean

public MessageDrivenBean()
Method Detail

onMessage

public void onMessage(Message message)
Passes a message to the listener.

Specified by:
onMessage in interface MessageListener
Parameters:
message - - the message passed to the listener

theMDBtimerMethod

public void theMDBtimerMethod(Timer timer)
Timeout method that will be called by the timer service when a timer is expiring.

Parameters:
timer - the timer object containing some data.


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.