Troubleshooting JMS Queues

snorkelfish
snorkelfish used Ask the Experts™
on
What could be the issue if messages in JMS Queue are left in store and not being emptied. Even after restart of WLS they remain and are not processed.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2004
Commented:
Hi snorkelfisk,

1.Is there any other messages can be processed? Or all the messages you put into queue always get stuck? If so, this case you should check whether MDB properly deploy or not.
2.If MDB deploy is ok and some other meesages can be processed. It would be possible that MDB get some system exception while processing those messages and return it back to the queue.

If this is the case, there are 2 options,

the fisrt is modify MDB to have try catch block for the statements that be possible to throw system exception, when it got exception you just log it to the log file and don't rethrow it to the caller.
 
The second is easier, you can configure jms queue to be deleted or send to other queue after it get exception. you can also set retry count for the queue.

Hope this help,
Sompol

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial