WildFly HornetQ Cluster Connection Configuration: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
A cluster connections represents an ''unidirectional'' communication channel between nodes. More details about the cluster connection concepts are available here: [[WildFly_HornetQ-Based_Messaging_Subsystem_Concepts#Cluster_Connection|Cluster Connection Concepts]]. | A cluster connections represents an ''unidirectional'' communication channel between nodes. More details about the cluster connection concepts are available here: [[WildFly_HornetQ-Based_Messaging_Subsystem_Concepts#Cluster_Connection|Cluster Connection Concepts]]. It is configured as follows: | ||
<pre> | |||
<subsystem xmlns="urn:jboss:domain:messaging:1.4"> | |||
<hornetq-server name="active-hq-node"> | |||
... | |||
<cluster-connections> | |||
<cluster-connection name="load-balancing-to-lb2"> | |||
<address>jms</address> | |||
<connector-ref>netty-inbound</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> | |||
<connector-ref> | |||
load-balancing-node-lb2 | |||
</connector-ref> | |||
</static-connectors> | |||
</cluster-connection> | |||
</cluster-connections> | |||
... | |||
</hornetq-server> | |||
</subsystem> | |||
</pre> |
Revision as of 00:28, 14 May 2016
Internal
Overview
A cluster connections represents an unidirectional communication channel between nodes. More details about the cluster connection concepts are available here: Cluster Connection Concepts. It is configured as follows:
<subsystem xmlns="urn:jboss:domain:messaging:1.4"> <hornetq-server name="active-hq-node"> ... <cluster-connections> <cluster-connection name="load-balancing-to-lb2"> <address>jms</address> <connector-ref>netty-inbound</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> <connector-ref> load-balancing-node-lb2 </connector-ref> </static-connectors> </cluster-connection> </cluster-connections> ... </hornetq-server> </subsystem>