toolbox.services.jms.simple
Interface SimpleConsumerService

Package class diagram package SimpleConsumerService
All Known Implementing Classes:
SimpleConsumerServiceImpl

public interface SimpleConsumerService

Interface that defines a simple message consumer interface.

This interface is provided as a convenience for simple message consumption requirements.


Method Summary
 void setDefaultMessageListener(javax.jms.MessageListener listener)
          Set the default MessageListener that this service must use to consume messages.
 void start(java.lang.String consumer)
          Start the named consumer.
 void stop(java.lang.String consumer)
          Stop the named consumer.
 

Method Detail

start

void start(java.lang.String consumer)
           throws ServiceException
Start the named consumer.

Parameters:
consumer - String indicating the named consumer that must started.
Throws:
ServiceException - if the consumer cannot be started.

stop

void stop(java.lang.String consumer)
          throws ServiceException
Stop the named consumer.

Parameters:
consumer - String indicating the named consumer that must stopped.
Throws:
ServiceException - if the consumer cannot be stopped.

setDefaultMessageListener

void setDefaultMessageListener(javax.jms.MessageListener listener)
Set the default MessageListener that this service must use to consume messages.

Parameters:
listener - MessageListener implementation.