|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.service.Service
org.exolab.jms.messagemgr.MessageMgr
public class 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 serviceMethod Detail |
---|
public void setDestinationManager(DestinationManager manager)
manager
- the destination managerpublic void prepare(MessageImpl message) throws javax.jms.JMSException
prepare
in interface MessageManager
message
- the message
javax.jms.JMSException
- if the message is invalid or cannot be prep'edpublic void add(MessageImpl message) throws javax.jms.JMSException
add
in interface MessageManager
message
- the message to add
javax.jms.JMSException
- if the message cannot be addedpublic void addEventListener(JmsDestination destination, MessageManagerEventListener listener)
addEventListener
in interface MessageManager
destination
- the destination to register the listener forlistener
- the listener to notifypublic void removeEventListener(JmsDestination destination)
removeEventListener
in interface MessageManager
destination
- the destination to remove the listener forprotected void doStart() throws ServiceException
doStart
in class Service
ServiceException
- if the service fails to startprotected void doStop() throws ServiceException
doStop
in class Service
ServiceException
- if the service fails to stop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |