Skip to main content

GlassFish cluster JMS broker configuration

No replies
poisond
Offline
Joined: 2013-05-31
Points: 0

Hello,
I'm having the exact same problem mentioned in https://java.net/jira/browse/GLASSFISH-17278
and https://www.java.net//forum/topic/glassfish/glassfish/broker-configuration - GlassFish sets the master broker to localhost:

Open Message Queue 4.5.2
Oracle
Version:  4.5.2 Patch 1  (Build 3-d)
Compile:  Thu Jun  7 10:46:15 PDT 2012

Copyright (c) 2012, Oracle and/or its affiliates.  All rights reserved.
================================================================================
Java Runtime: 1.7.0_21 Oracle Corporation /usr/lib/jvm/java-7-openjdk-amd64/jre
[29/Mai/2013:17:39:36 MESZ]    IMQ_HOME=/opt/glassfish3/mq
[29/Mai/2013:17:39:36 MESZ] IMQ_VARHOME=/opt/glassfish3/glassfish/nodes/web2/instance-web2/imq
[29/Mai/2013:17:39:36 MESZ] Linux 2.6.32-5-amd64 amd64 web2.rz (4 cpu) root
[29/Mai/2013:17:39:36 MESZ] Java Heap Size: max=3728320k, current=439808k
[29/Mai/2013:17:39:36 MESZ] Arguments: -port 27676 -name isasclusterinstanceweb2 -nobind -imqhome /opt/glassfish3/mq -varhome /opt/glassfish3/glassfish/nodes/web2/insta
nce-web2/imq -libhome /opt/glassfish3/mq/lib -useRmiRegistry -rmiRegistryPort 28686 -save -silent
[29/Mai/2013:17:39:36 MESZ] JMSRA BrokerProps: imq.cluster.brokerlist=mq://web2:27676/,mq://localhost:27676/, imq.cluster.masterbroker=mq://localhost:27676/, imq.cluste
r.dynamicChangeMasterBrokerEnabled=true, imq.service.activate=jmsdirect, imq.imqcmd.password=*****, imq.jmsra.managed=true, imq.cluster.nowaitForMasterBroker=true
[29/Mai/2013:17:39:36 MESZ] Broker Properties: imq.service.activate=jmsdirect, imq.cluster.nowaitForMasterBroker=true, imq.jmx.rmiregistry.use=true, imq.cluster.brokerlist=mq://in
telishop-web2:27676/,mq://localhost:27676/, imq.cluster.masterbroker=mq://localhost:27676/, imq.portmapper.port=27676, imq.jmsra.managed=true, imq.instancename=isasclusterinstance
web2, imq.log.console.output=NONE, imq.imqcmd.password=*****, imq.jmx.rmiregistry.port=28686, imq.service.runtimeAdd=mqdirect2, imq.cluster.dynamicChangeMasterBrokerEnabled=true,
imq.portmapper.bind=false
[29/Mai/2013:17:39:36 MESZ] Embedded Broker

Unfortunately I can't figure out the configuration directive to set.
configs.config.${clustername}-config.jms-service.jms-host.default_JMS_host.host
doesn't work.
Any help on this?

Thanks in advance