Dec 1st, 2009, 11:31 AM
Changing the number of JMS listeners
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
Jan 16th, 2010, 02:18 AM
Found a solution
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.
Jan 21st, 2010, 12:06 PM
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.
Originally Posted by joachimhb