users@glassfish.java.net

Re: JMS Reconnect Issues

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 Apr 2008 08:14:27 PDT

You are right that setting addresslist-iterations to -1 is rejected.

asadmin set --port 5848 server.jms-service.addresslist-iterations=-1
ADMVAL1045: '-1' is invalid value for addresslist-iterations attribute. Valid range for this value is from 1 to 2147483638
ADMVAL1070: Change of jms service is rejected.
CLI137 Command set failed.

But according to Ramesh, this should be allowed. I guess the last resort is to edit domain.xml directory, and be very careful to only change that value.
domain.xml can be found in glassfish/domains/domain1/config/domain.xml
Stop the domain before changing it.

<jms-service addresslist-behavior="random" addresslist-iterations="3" default-jms-host="default_JMS_host" init-timeout-in-seconds="60" reconnect-attempts="-1" reconnect-enabled="true" reconnect-interval-in-seconds="5" type="EMBEDDED">
[Message sent by forum member 'anilam' (anilam)]

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