|
||||||||||
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.DestinationBinder
public class DestinationBinder
Binds persistent destinations in JNDI.
Constructor Summary | |
---|---|
DestinationBinder(DestinationManager destinations,
NameService names)
Construct a new DestinationBinder . |
Method Summary | |
---|---|
void |
cacheAdded(JmsDestination destination,
DestinationCache cache)
Invoked when a message cache is created. |
void |
cacheRemoved(JmsDestination destination,
DestinationCache cache)
Invoked when a message cache is removed. |
void |
destinationAdded(JmsDestination destination)
Invoked when a destination is created. |
void |
destinationRemoved(JmsDestination destination)
Invoked when a destination is removed. |
protected void |
doStart()
Start the service. |
protected void |
doStop()
Stop the service. |
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 DestinationBinder(DestinationManager destinations, NameService names)
DestinationBinder
.
destinations
- the destination managernames
- the name serviceMethod Detail |
---|
public void destinationAdded(JmsDestination destination) throws javax.jms.JMSException
destinationAdded
in interface DestinationEventListener
destination
- the destination that was added
javax.jms.JMSException
- for any errorpublic void destinationRemoved(JmsDestination destination)
destinationRemoved
in interface DestinationEventListener
destination
- the destination that was removedpublic void cacheAdded(JmsDestination destination, DestinationCache cache)
cacheAdded
in interface DestinationEventListener
destination
- the destination that messages are being cached forcache
- the corresponding cachepublic void cacheRemoved(JmsDestination destination, DestinationCache cache)
cacheRemoved
in interface DestinationEventListener
destination
- the destination that messages are no longer being
cached forcache
- the corresponding cacheprotected 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 |