users@glassfish.java.net

Re: Writing a JMS client for a Message Queue Broker Cluster ...

From: <forums_at_java.net>
Date: Fri, 31 May 2013 12:45:27 -0500 (CDT)

> Did I misunderstand how a broker cluster works? No, your understanding is
completely correct. If the two message queue brokers are clustered (which
they should be if the two GlassFish instances are clustered) then it
shouldn't make any difference which broker a client is connected to. Before
looking for other explanations, the first thing to check is whether the two
brokers are indeed connected together as a cluster. Have a look at the broker
log for each GlassFish instance (which will be under the GlassFish instance
in a directory glassfish3\glassfish\nodes\\\imq\instances\\log). After the
brokers start they will try to connect to each other and log a message to say
that this has happened successfully. Look for messages similar to:
[timestamp] [B1150]: Waiting for cluster connection to
mq://1.2.3.4:27677/?instName=???&brokerSessionUID=null to be established . .
. [timestamp] [B1071]: Established cluster connection to broker
mq://1.2.3.4:27677/?instName=cluster1instance2&brokerSessionUID=1739584606839549696[myhost/1.2.3.4:51198]
If the brokers can't connect for some reason you'll see an error message
instance.

--
[Message sent by forum member 'nigeldeakin']
View Post: http://forums.java.net/node/897020