How to开发者_开发知识库 destroy my JMS Message listener ?
I tried writing a code to set it to null, but that does not help
Call the close() on the consumer that have the message listener set.
MessageConsumer consumer = session.createConsumer(destination, selector);
consumer.setMessageListener(listener);
...
/* Listening is working */
...
consumer.close();
/* Listening is NOT working anymore */
精彩评论