org.openmms.ejb.server
Class MDB_Notify

java.lang.Object
  |
  +--org.openmms.ejb.server.MDB_Notify
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.MessageDrivenBean, javax.jms.MessageListener, java.io.Serializable

public class MDB_Notify
extends java.lang.Object
implements javax.ejb.MessageDrivenBean, javax.jms.MessageListener

Title: Mdb_Notify

Description: Message Driven Bean (MDB) for the notification queue

Copyright: Copyright (c) 2003

Company:

See Also:
Serialized Form

Constructor Summary
MDB_Notify()
          Constructor, creates a new MDB_Notify
 
Method Summary
 void ejbCreate()
          Standard ejbCreate function (required), without content.
 void ejbRemove()
          Sets the context back to null
 void onMessage(javax.jms.Message message)
          Sends the notification
 void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
          Sets the context for the MDB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDB_Notify

public MDB_Notify()
Constructor, creates a new MDB_Notify

Method Detail

setMessageDrivenContext

public void setMessageDrivenContext(javax.ejb.MessageDrivenContext ctx)
                             throws javax.ejb.EJBException
Sets the context for the MDB

Specified by:
setMessageDrivenContext in interface javax.ejb.MessageDrivenBean
Parameters:
ctx -
Throws:
javax.ejb.EJBException

ejbCreate

public void ejbCreate()
Standard ejbCreate function (required), without content.


ejbRemove

public void ejbRemove()
Sets the context back to null

Specified by:
ejbRemove in interface javax.ejb.MessageDrivenBean

onMessage

public void onMessage(javax.jms.Message message)
Sends the notification

Specified by:
onMessage in interface javax.jms.MessageListener
Parameters:
message -