| java.lang.Object org.objectweb.jonas.jtests.util.JBean org.objectweb.jonas.jtests.beans.message.Listener
All known Subclasses: org.objectweb.jonas.jtests.beans.message.T2txreqMD, org.objectweb.jonas.jtests.beans.message.T1txnotMD, org.objectweb.jonas.jtests.beans.message.T2txnotMD, org.objectweb.jonas.jtests.beans.message.Q1txreqMD, org.objectweb.jonas.jtests.beans.message.Q3commitMD, org.objectweb.jonas.jtests.beans.message.Q2txnotMD, org.objectweb.jonas.jtests.beans.message.T1txreqMD, org.objectweb.jonas.jtests.beans.message.Q3rollbackMD,
Listener | abstract public class Listener extends JBean implements MessageDrivenBean,MessageListener,TimedObject(Code) | | Common code for all Message Driven Beans
author: Philippe Durieux, Philippe Coq |
Method Summary | |
public void | ejbCreate() The Message driven bean must define an ejbCreate methods with no args. | public void | ejbRemove() A container invokes this method before it ends the life of the message-driven object. | public void | ejbTimeout(Timer timer) A timer is expired. | abstract protected String | getMyDest() | public void | onMessage(Message message) | public void | setMessageDrivenContext(MessageDrivenContext ctx) Set the associated context. |
CREATE_TIMER_MAX | final public static int CREATE_TIMER_MAX(Code) | | |
CREATE_TIMER_MIN | final public static int CREATE_TIMER_MIN(Code) | | |
logger | protected static Logger logger(Code) | | |
mdbContext | protected transient MessageDrivenContext mdbContext(Code) | | |
Listener | public Listener()(Code) | | Default constructor
|
ejbCreate | public void ejbCreate()(Code) | | The Message driven bean must define an ejbCreate methods with no args.
|
ejbRemove | public void ejbRemove()(Code) | | 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.
throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
ejbTimeout | public void ejbTimeout(Timer timer)(Code) | | A timer is expired.
|
onMessage | public void onMessage(Message message)(Code) | | onMessage method
|
setMessageDrivenContext | public void setMessageDrivenContext(MessageDrivenContext ctx)(Code) | | Set the associated context. The container call 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.
Parameters: ctx - A MessageDrivenContext interface for the instance. throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
|
|