| |
|
| java.lang.Object sampleappli.OrderBean
OrderBean | public class OrderBean implements MessageDrivenBean,MessageListener(Code) | | |
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 | onMessage(Message message) | public void | setMessageDrivenContext(MessageDrivenContext ctx) Set the associated context. |
OrderBean | public OrderBean()(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. |
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: MessageDrivenContext - A MessageDrivenContext interface for theinstance. throws: EJBException - Thrown by the method to indicate a failure caused bya system-level error. |
|
|
|