Results 1 to 3 of 3

Thread: Changing the number of JMS listeners

  1. #1
    Join Date
    Jan 2007
    Posts
    6

    Default Changing the number of JMS listeners

    Hello,

    I have defined a DefaultJMSContainer in my applicationContext.xml. In this configuration I have set up 20 listeners on the queue. However, during the hours of 01:00 AM and 05:00 am I do not want to read any messages from the queue.

    Is it possible to "halt" or "pause" the listeners, or alternatively deregister listeners at 01:00 AM, and then fire them up again at 05:00 AM ?

    The application has a RMI interface as well, so I can trigger work to be done from the outside (via Cron or other scheduling software).

    is it enought to call springJmsContainer.stop() at 01:00 AM and then springJmsContainer.start() again at 05:00 AM ?

    Very Best Regards,
    Joachim Haagen Skeie

  2. #2
    Join Date
    Feb 2009
    Posts
    135

    Default Found a solution

    Hi,

    Did you find the answer for your question.
    If you know the answer please post here.

    what is the best way to bring down JMS client, After successful completion of current work is it doing.

    Thanks

  3. #3
    Join Date
    May 2008
    Posts
    153

    Default

    Quote Originally Posted by joachimhb View Post
    Hello,
    is it enought to call springJmsContainer.stop() at 01:00 AM and then springJmsContainer.start() again at 05:00 AM ?
    I tried using start() from within the application lifecycle listener. I am not certain, but it seemed like the only thing that actually started the container was to set autoStart="true". The behavior seemed different (judging from log messages) when using autoStart, I never figured out the root cause either.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •