setMessageListener
public void setMessageListener(MessageListener listener) throws JMSException;
Sets the message consumer's MessageListener.
- Parameters
- listener - the messages are delivered to this listener.
- Exceptions
- JMSException - with one of the following reasons:
- MQJMS_QRECEIVER_CLOSED
- MQJMS_E_SESSION_ASYNC
- MQJMS_MESSAGECONSUMER_CLOSED
- MQJMS_SUBSCRIBER_CLOSED
- java.lang.SecurityException -
uj29390_