February 2002
Beginner to intermediate
544 pages
10h 23m
English
The following methods are defined in the interface javax.jms.MessageConsumer.
public void close()
Closes the message consumer.
Since a provider may allocate some resources on behalf of a MessageConsumer outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
This call blocks until a receive or message listener in progress has completed. A blocked message consumer receive call returns null when this message consumer is closed.
THROWS:
JMSException if the JMS provider fails to close the consumer due to some internal error
public MessageListener getMessageListener()
Gets the message ...
Read now
Unlock full access