users@glassfish.java.net

Message Queue consumer limit

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Sep 2008 22:28:08 PDT

Here is the scenario (glassfish v2 UR1 Final with bundled MQ 4.1):

-multiple standalone Producers sending in (a lot) of Text messages to the Queue;
-defined 3 MDB's listening to the same queue

Problem:
-glassfish creates only 2 consumers (MDB's) at time. Would it be so that it has to spawn processing of all active (listening) beans provided that there are messages in that queue ?

Tried playing with maxNumActiveConsumers set to -1 and consumerFlowLimit to 1 - same thing - glassfish/mq (as per server.log) is creating only 2 consumers at a time.

MQ log says:

================================================================================
Sun Java(tm) System Message Queue 4.1
Sun Microsystems, Inc.
Version: 4.1 Patch 1 (Build 4-b)
Compile: Wed Nov 7 22:30:57 PST 2007

Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. Use is
subject to license terms.
================================================================================
Java Runtime: 1.6.0_10-rc2 Sun Microsystems Inc. /usr/jdk/jdk1.6.0_10/jre
[12/Sep/2008:07:54:43 EEST] License: Sun Java(tm) System Message Queue 4.1 Enterprise Edition


which I presume means that limit of Platform Edition is not a case ?

/mareks
[Message sent by forum member 'mareks' (mareks)]

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