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
Post a Comment