How to make Java client "aware" of the cluster

Assume for the moment that I have configured the brokers for clustering using a common cluster configuration file.

Since there is really no "cluster IP and port" for the clustered brokers, at the moment, I assume that for the clients to be able to connect to the clustered brokers, they simply connect to each of the individual brokers, either randomly or sequentially, until one is found available and that becomes their home broker.

I assume this is configured via the property imqAddressList and the imqAddressListBehavior using the objmgr command-line utility ?

http://docs.sun.com/source/819-2571/ref_adminobj_props.html

.. by simply supplying a comma-separated list of the individual brokers' IP and port for the imqAddressList property ?

... and then copying the file-object store to the individual clients' machine and use that file-object store as the URL for the JNDI initial context ?

Message was edited by:

j.salvo

[978 byte] By [j.salvo] at [2007-11-26 8:17:45]
# 1

To answer my own question. the answer is yes.

The JMS client runtime will actually automatically failover to the next broker on the list if the existing home broker is shutdown. The JMS client will not even know of the failover ( as far as my testing is concerned ).

The only time the JMS client will receive an exception is when all brokers on the cluster are unavailable.

jsalvo at 2007-7-6 21:18:44 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...