thanks Sompol for your reply.
But what I do not understand is that the queue stacks up, but when I restart the server they get cleared and they are infact getting consumed and do not expire. So how is that when at the time of message consumption it throws the exception (the exception I had posted earlier), but they get consumed when I restart the server. Remember the queues are all consumed and they do not get expired.
- thank you
Main Topics
Browse All Topics





by: sompol_kiatkamolchaiPosted on 2009-10-28 at 22:53:32ID: 25690980
Hi swapna84,
It would be possible that there is an exception while MDB consumes and processes the JMS message from queue. When exception occur the message will return back to jms queue. This will happen in looping until the jms message expired.
You can configure to avoid looping by setting redelivery limit to 3 times. The default of this setting is -1 which means unlimited try.
Here is a definition of Redelivery Limit parameter.
"The number of redelivery tries a message can have before it is moved to the error destination. This setting overrides any redelivery limit set by the message sender. If the redelivery limit is configured, but no error destination is configured, then persistent and non-persistent messages are simply dropped (deleted) when they reach their redelivery limit"
Hope this help,
Sompol