|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.jms.service.Service
|
+--org.exolab.jms.messagemgr.MessageMgr
This is the active message handling component within the JMS server. Messages are passed in and added to the appropriate dispatchers for delivery to the clients.
| Constructor Summary | |
MessageMgr(DatabaseService database)
Construct a new MessageMgr. |
|
| Method Summary | |
void |
add(MessageImpl message)
Add a message. |
void |
addEventListener(JmsDestination destination,
MessageManagerEventListener listener)
Register a listener for a specific destination, to be notified when messages for the destination arrive. |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
void |
prepare(MessageImpl message)
Prepares a message prior to it being passed through the system. |
void |
removeEventListener(JmsDestination destination)
Remove the listener for the specified destination. |
void |
setDestinationManager(DestinationManager manager)
Sets the destination manager. |
| Methods inherited from class org.exolab.jms.service.Service |
getName, isStarted, restart, start, stop, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MessageMgr(DatabaseService database)
MessageMgr.database - the database service| Method Detail |
public void setDestinationManager(DestinationManager manager)
manager - the destination manager
public void prepare(MessageImpl message)
throws javax.jms.JMSException
prepare in interface MessageManagermessage - the messagejavax.jms.JMSException - if the message is invalid or cannot be prep'ed
public void add(MessageImpl message)
throws javax.jms.JMSException
add in interface MessageManagermessage - the message to addjavax.jms.JMSException - if the message cannot be added
public void addEventListener(JmsDestination destination,
MessageManagerEventListener listener)
addEventListener in interface MessageManagerdestination - the destination to register the listener forlistener - the listener to notifypublic void removeEventListener(JmsDestination destination)
removeEventListener in interface MessageManagerdestination - the destination to remove the listener for
protected void doStart()
throws ServiceException
doStart in class ServiceServiceException - if the service fails to start
protected void doStop()
throws ServiceException
doStop in class ServiceServiceException - if the service fails to stop
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||