users@glassfish.java.net

Re: GlassFish JMS Cluster Load Balancing Unpredictable

From: <glassfish_at_javadesktop.org>
Date: Thu, 06 Aug 2009 11:02:30 PDT

> Couple of questions..
> 1)How can I set flow limit through the Glassfish
> Admin GUI( I tried adding as a new property to the
> JMS Settings., But it didnt work).

Unfortunately it's slightly less obvious than that: You need to set the "Start Arguments" field on the JMS Service node to <tt>-Dimq.autocreate.topic.consumerFlowLimit=50</tt> (or whatever).

I've just written a blog posting about this:
http://openmessaging.blogspot.com/2009/08/how-to-set-arbitrary-broker-properties.html

> 2) What is the property name to set through the admin
> GUI.
> [b]imqConsumerFlowLimit[/b] or
> [b]imq.autocreate.topic.consumerFlowLimit[/b]

It depends on whether your destination is auto-created or admin-created.

The difference between an auto-created destination and an admin created destinaiton is described <a href="http://docs.sun.com/app/docs/doc/820-6424/aercl?a=view">here</a>

If you're using an auto-created destination you need to set the broker property <tt>imq.autocreate.topic.consumerFlowLimit</tt>, as described above.

If you're using a admin-created destination you need to set <tt>imqConsumerFlowLimit</tt> on the destination. This is a property of the destination, not the broker. You can set it using imqcmd: More details <a href="http://docs.sun.com/app/docs/doc/820-6740/gheav?a=view">here</a>.

Nigel
[Message sent by forum member 'nigeldeakin' (nigeldeakin)]

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