stop

 

public void stop() throws JMSException;

Temporarily stops a connection's delivery of incoming messages. It can be restarted with the start() method. When it is stopped, it inhibits delivery to all its message consumers. Synchronous receives are blocked, and messages are not delivered to message listeners. Stopping a session has no affect on its ability to send messages. Stopping a session that is already stopped has no effect.

Exceptions

  • JMSException - if the JMS implementation fails to stop the message delivery because of an internal error.


uj27590_