users@glassfish.java.net

Re: SJSAS Messaging vs Glassfish Messaging differences

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 May 2008 15:00:53 PDT

There may be some confusion on what maxNumActiveConsumers does.

That property tells the broker to allow only *10* consumers to connect to the broker, however it does not control how many actual consumers glassfish tries to create. Its not a scaling parameter (more of a security parameter )

e.g. if you were writing a standalone application that created a single consumer, you could run 10 instances of that application at the same time and the 11th would get an exception when the consumer was created.

I'm assuming that you are using MDB's ? An MDB generally creates on one consumer (a special type of consumer called ConnectionConsumer) on a connection which retrieves messages (and those messages are then handed off to one or more MDBs). To get more consumers, you will need to use more of the pooled connections.
[Message sent by forum member 'lindaschneider' (lindaschneider)]

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