users@glassfish.java.net

Problem with multiple consumers on a JMS queue and selectors (dealock)

From: <glassfish_at_javadesktop.org>
Date: Tue, 19 Feb 2008 04:46:09 PST

Hello,

We have a deadlock problem when we use several consumers (session beans, not mdb) on a queue AND selectors. After running for while, our test program halts because the bean calls receive() on the queue. The method call does not return, even though there are messages available in the queue.

Has anyone encountered similar issues? We want to use a load balancing pattern and be able to process messages in groups, so we need to use multiple consumers and selectors in conjunction...

Many thanks for your feedback and hints!

Cheers,

Olivier

The behavior and a test case are available in the issue referenced below.

https://glassfish.dev.java.net/issues/show_bug.cgi?id=4222
[Message sent by forum member 'oliechti' (oliechti)]

http://forums.java.net/jive/thread.jspa?messageID=259642