org.jboss.test.messagedriven.beans
Class TestMessageDriven

java.lang.Object
  extended byorg.jboss.test.messagedriven.beans.TestMessageDriven
All Implemented Interfaces:
EnterpriseBean (src) , MessageDrivenBean (src) , MessageListener (src) , java.io.Serializable

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

A Test Message Driven Bean

See Also:
Serialized Form

Field Summary
protected  MessageDrivenContext (src) ctx
           
protected static Logger (src) log
           
protected  TestMessageDrivenManagementMBean (src) mbean
           
 
Constructor Summary
TestMessageDriven()
           
 
Method Summary
 void ejbCreate()
           
 void ejbRemove()
          A container invokes this method before it ends the life of the message-driven object.
 java.lang.String getRollback()
           
 boolean isDLQ(Message (src)  message)
           
 void logProperties()
           
 Transaction (src) logTransaction()
           
 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
 

Field Detail

log

protected static final Logger (src)  log

ctx

protected MessageDrivenContext (src)  ctx

mbean

protected TestMessageDrivenManagementMBean (src)  mbean
Constructor Detail

TestMessageDriven

public TestMessageDriven()
Method Detail

onMessage

public void onMessage(Message (src)  message)
Description copied from interface: MessageListener (src)
Passes a message to the listener.

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

isDLQ

public boolean isDLQ(Message (src)  message)

getRollback

public java.lang.String getRollback()

logProperties

public void logProperties()

logTransaction

public Transaction (src)  logTransaction()

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)

setMessageDrivenContext

public void setMessageDrivenContext(MessageDrivenContext (src)  ctx)
Description copied from interface: 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.

Specified by:
setMessageDrivenContext in interface MessageDrivenBean (src)
Parameters:
ctx - - A MessageDrivenContext interface for the instance.