jboss - HornetQ Clustering Specific Queue and Topic -
jboss - HornetQ Clustering Specific Queue and Topic -
i using horentq in clustered mode in jboss 7.1; wanted see if can cluster specific topics , queues only. understood this link possible configuring address. not able find address works. here snapshot of doamin.xml; clustering not working
<cluster-connections> <cluster-connection name="my-cluster"> <address>mro</address> <connector-ref>netty</connector-ref> <discovery-group-ref discovery-group-name="dg-group1"/> </cluster-connection> </cluster-connections>
here how queue , topic defined. changing address jms makes clustered , working, not want
<jms-queue name="mroqueue"> <entry name="mro/mroqueue"/> <entry name="java:jboss/exported/mro/mroqueue"/> </jms-queue> <jms-topic name="mrotopic"> <entry name="mro/mrotopic"/> <entry name="java:jboss/exported/mro/mrotopic"/> </jms-topic>
i tried various wildcards in address nil working. in end got working
<cluster-connections> <cluster-connection name="my-cluster"> <address>jms.queue.cluster</address> <connector-ref>netty</connector-ref> <discovery-group-ref discovery-group-name="dg-group1"/> </cluster-connection> </cluster-connections>
and queues
<jms-queue name="cluster.mroqueue"> <entry name="cluster.mroqueue"/> <entry name="java:jboss/exported/cluster.mroqueue"/> </jms-queue> <jms-topic name="cluster.mrotopic"> <entry name="cluster.mrotopic"/> <entry name="java:jboss/exported/cluster.mrotopic"/> </jms-topic>
the above made both queues , topics clustered. test changed
<cluster-connections> <cluster-connection name="my-cluster"> <address>jms.queue.cluster3</address> <connector-ref>netty</connector-ref> <discovery-group-ref discovery-group-name="dg-group1"/> </cluster-connection> </cluster-connections>
and changed queues
<jms-queue name="cluster2.mroqueue"> <entry name="cluster2.mroqueue"/> <entry name="java:jboss/exported/cluster2.mroqueue"/> </jms-queue>
and did not cluster; seems way @ to the lowest degree in version specific clustering
jboss hornetq
Comments
Post a Comment