spring - Toggling JMS Listener on/off causes listener to hang -


we have spring project (3.0.5) listening jms queue (websphere 7). need ability toggle queue listener on/off. programmatically calling defaultmessagelistenercontainer.start() , stop() via our own restful endpoint toggle listener on/off.

we have observed after toggling listener on 2 or 3 times (on/off/on or on/off/on/off/on) listener goes hung state , cannot toggle off.

to debug going on have our log level set trace. when listener turned on see following message in our log:

xxxx-xx-xx [mylistenercontainer-1] trace c.g.c.r.c.m.messagelistenercontainer - doreceiveandexecute - consumer [com.ibm.mq.jms.mqqueuereceiver@45486b51] of session [com.ibm.mq.jms.mqqueuesession@1872c950] did not receive message

however, last time turn on listener before hangs, fail see message in log.

extra details:

  • getting hung state reproducible or without messages entering queue.
  • the last time turn on listener before hangs, can "correct" hung state putting message on queue. once message received see healthy trace messages in log , able toggle listener off.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -