How to stop DefaultMessageListenerContainer from consuming messages without without invoking stop()

156 views Asked by At

I am using the DefaultMessageListenerContainer from Spring JMS. While the listener is still running I want to briefly stop consuming messages lets say for 30 mins without stopping the container.

DefaultMessageListenerContainer.stop() will help me do this but I do not want to use this.

Is there a way to achieve this?

0

There are 0 answers