So question is how to temporary stop and start a jms listener created using spring using the fallowing way :
You can also get a hold of the messageListenerContainer, and invoke stop() on it:
@javax.annotation.Resource //autowire by name
private AbstractJmsListeningContainer myMessageListenerContainer;
myMessageListenerContainer.stop();
I'm using the more verbose setup of this container:
Here you see that you can set autoStartup to false if you don't want the listenerContainer to automatically start.