saw here a way to stop the listener with the method stop in DefaultMessageListenerContainer How to pause/resume individual Spring JMS message listeners, but I don't know if it's the right way considering my requirement. if I'm processing a message while stop is called, it will continue the processing? or will drop the message? can stop() fail?
Asked
Active
Viewed 383 times
0
-
1use the shutDown() that allows for completion of processing message, before shutting down. – kus May 04 '22 at 19:49
-
1IMO: Stop method call will stop delivery of any new messages, however the processing of current message will continue. – Shashi May 05 '22 at 05:49