mardi 3 mars 2015

Spring JMS DefaultListenerContainer doesn't not stop/start

I have created spring jms Queue listener in applicationContext.xml, tried to stop/start Queue listener from java class as below.



DefaultMessageListenerContainer defaultMessageListenerContainer =
(DefaultMessageListenerContainer) applicationContext.getBean("messageQueueListener",
DefaultMessageListenerContainer.class);
defaultMessageListenerContainer.stop();


The above is not working if the application deployed in clustered environment. How to stop listener in clustered environment?


Aucun commentaire:

Enregistrer un commentaire