org.jboss.test.foedeployer.ejb.message
Class MessageTraderBean

java.lang.Object
  extended byorg.jboss.test.foedeployer.ejb.message.MessageTraderBean
All Implemented Interfaces:
EnterpriseBean (src) , MessageDrivenBean (src) , MessageListener (src) , java.io.Serializable

public class MessageTraderBean
extends java.lang.Object
implements MessageDrivenBean (src) , MessageListener (src)

A simple Message Driven Bean

See Also:
Serialized Form

Field Summary
protected  Category log
           
 
Constructor Summary
MessageTraderBean()
           
 
Method Summary
 void ejbCreate()
           
 void ejbRemove()
          A container invokes this method before it ends the life of the message-driven object.
 void onMessage(Message (src)  msg)
          Handle the message.
 void setMessageDrivenContext(MessageDrivenContext (src)  ctx)
          Sets the session context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Category log
Constructor Detail

MessageTraderBean

public MessageTraderBean()
Method Detail

setMessageDrivenContext

public void setMessageDrivenContext(MessageDrivenContext (src)  ctx)
Sets the session context.

Specified by:
setMessageDrivenContext in interface MessageDrivenBean (src)
Parameters:
ctx - MessageDrivenContext Context for session

onMessage

public void onMessage(Message (src)  msg)
Handle the message.

Specified by:
onMessage in interface MessageListener (src)
Parameters:
msg - the message passed to the listener

ejbCreate

public void ejbCreate()

ejbRemove

public void ejbRemove()
Description copied from interface: 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.

Specified by:
ejbRemove in interface MessageDrivenBean (src)