org.ow2.easybeans.examples.timerservice
Class MessageDrivenBean
java.lang.Object
org.ow2.easybeans.examples.timerservice.MessageDrivenBean
- All Implemented Interfaces:
- javax.jms.MessageListener
public class MessageDrivenBean
- extends Object
- implements javax.jms.MessageListener
Example of Message Driven Bean.
This is an JMS MDB, implementing the MessageListener interface.
- Author:
- Florent Benoit
Method Summary |
void |
onMessage(javax.jms.Message message)
Passes a message to the listener. |
void |
theMDBtimerMethod(javax.ejb.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 |
MessageDrivenBean
public MessageDrivenBean()
onMessage
public void onMessage(javax.jms.Message message)
- Passes a message to the listener.
- Specified by:
onMessage
in interface javax.jms.MessageListener
- Parameters:
message
- - the message passed to the listener
theMDBtimerMethod
public void theMDBtimerMethod(javax.ejb.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-2011 OW2 Consortium. All Rights Reserved.