|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.timer.ejb.TimerMessageBean
An MDB that schedules an ejb timer for every onMessage receipt. The timer is a single event timer that expires after 10 seconds.
Constructor Summary | |
TimerMessageBean()
|
Method Summary | |
void |
ejbCreate()
|
void |
ejbRemove()
A container invokes this method before it ends the life of the message-driven object. |
void |
ejbTimeout(Timer (src) timer)
Invoked by the EJB container upon timer expiration. |
void |
initTimer(int msgID,
Queue (src) replyTo)
|
void |
onMessage(Message (src) message)
Passes a message to the listener. |
void |
setMessageDrivenContext(MessageDrivenContext (src) ctx)
Set the associated message-driven context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TimerMessageBean()
Method Detail |
public void setMessageDrivenContext(MessageDrivenContext (src) ctx) throws EJBException (src)
MessageDrivenBean (src)
Set the associated message-driven context. The container calls this method after the instance creation.
The enterprise Bean instance should store the reference to the context object in an instance variable.
This method is called with no transaction context.
setMessageDrivenContext
in interface MessageDrivenBean (src)
ctx
- - A MessageDrivenContext interface for the instance.
EJBException (src)
- - Thrown by the method to indicate a failure caused by a system-level error.public void ejbCreate()
public void ejbTimeout(Timer (src) timer)
TimedObject (src)
ejbTimeout
in interface TimedObject (src)
timer
- Timer whose expiration caused this notificationpublic void ejbRemove() throws EJBException (src)
MessageDrivenBean (src)
A container invokes this method before it ends the life of the message-driven object. This happens when a container decides to terminate the message-driven object.
This method is called with no transaction context.
ejbRemove
in interface MessageDrivenBean (src)
EJBException (src)
- - Thrown by the method to indicate a failure caused by a system-level error.public void onMessage(Message (src) message)
MessageListener (src)
onMessage
in interface MessageListener (src)
message
- the message passed to the listenerpublic void initTimer(int msgID, Queue (src) replyTo)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |