| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface JmsConsumer
Interface defining a generic JMS consumer. Implementations of this interface must provide Queue receiver and Topic subscriber functionalities.
| Method Summary | |
|---|---|
|  void | destroy()Destroy this consumer. | 
|  java.lang.String | getName()Return the name of this consumer. | 
|  void | init(java.lang.String name,
     java.util.Map props,
     javax.jms.ExceptionListener exLsnr)Initialise this consumer with the given name identifier and configuration properties. | 
|  javax.jms.Message | receive()Use this method to receive messages when no listener was specified for this consumer in point_to_point mode. | 
|  void | setMessageListener(javax.jms.MessageListener listener)Set the message listener that must be used by this consumer to process messages. | 
|  void | start()Tell this consumer to start listening. | 
|  void | stop()Tell this consumer to stop listening. | 
| Method Detail | 
|---|
void init(java.lang.String name,
          java.util.Map props,
          javax.jms.ExceptionListener exLsnr)
          throws JmsException
name - String containing the name identifier of this consumer.props - Map instance containing the configuration 
                for this consumer.exLsnr - ExceptionListener instance that this consumer must use
                to monitor it's broker connection.
JmsException - if the consumer cannot be initialised.java.lang.String getName()
void start()
           throws JmsException
JmsException
void stop()
          throws JmsException
JmsExceptionvoid setMessageListener(javax.jms.MessageListener listener)
listener - MessageListener implementation that must be used to
                   process messages.
javax.jms.Message receive()
                          throws JmsException
JmsException - if the message could not be consumed.void destroy()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||