I have tried to configure HornetQ server-side load-balancing using clustering. I am using Wildfly 9, and I have done following configuration on standalon-ha.xml
file but it is not sharing load between two server.
<cluster-connections>
<cluster-connection name="tcp-based-cluster-node1-to-node2">
<address>jms</address>
<connector-ref>netty</connector-ref>
<retry-interval>500</retry-interval>
<use-duplicate-detection>true</use-duplicate-detection>
<forward-when-no-consumers>true</forward-when-no-consumers>
<max-hops>1</max-hops>
<static-connectors>
<!-- just one connector-ref here -->
<connector-ref>node2-connector</connector-ref>
</static-connectors>
</cluster-connection>
</cluster-connections>
<connectors>
<netty-connector name="node2-connector" socket-binding="node2-hornetq-binding"/>
</connectors>
<connection-factory name="RemoteConnectionFactory">
<connectors>
<connector-ref connector-name="node2-connector"/>
</connectors>
<entries>
<entry name="RemoteConnectionFactory"/>
<entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
</entries>
<use-global-pools>false</use-global-pools>
<scheduled-thread-pool-max-size>200</scheduled-thread-pool-max-size>
<thread-pool-max-size>-1</thread-pool-max-size>
</connection-factory>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
.....
<outbound-socket-binding name="node2-hornetq-binding">
<remote-destination host="192.168.102.33" port="9090"/>
</outbound-socket-binding>
</socket-binding-group>
The same configuration was done on the second cluster but message queue is not sharing load between HornetQ servers. Any suggestion what is wrong and which configuration extra need for load sharing? I read many tutorials but not a single suggestion for the same.