Migrating HornetQ clustring from UDP to TCP in JBoss EAP 6.4

Posted on

Hi,
I am migrating HornetQ clustring from UDP to TCP. I have tried it as per https://access.redhat.com/documentation/en-us/jboss_enterprise_application_platform/6.3/html/administration_and_configuration_guide/switch_udp_to_tcp_for_hornetq_clustering but it didn't work(cluster didn't formed). Atached standalone-full-ha.xml configuration file. Please help.

We are using JBoss EAP 6.4 version.
Below is the HornetQ configuration:

true
cttapp01_user
cttapp01_user
ASYNCIO
10485760
2
30
10

        <connectors>
           <netty-connector name="cluster-cta-app01" socket-binding="cluster-cta-app01"/>
           <netty-connector name="cluster-cta-app03" socket-binding="cluster-cta-app03"/>
           <in-vm-connector name="in-vm" server-id="0"/>
        </connectors>


        <cluster-connections>
            <cluster-connection name="queue-cluster">
                <address>jms.queue.clustered</address>
                <connector-ref>netty-connector</connector-ref>
                <check-period>600000</check-period>
                <connection-ttl>-1</connection-ttl>
                <retry-interval>500</retry-interval>
                <retry-interval-multiplier>1.0</retry-interval-multiplier>
                <max-retry-interval>5000</max-retry-interval>
                <reconnect-attempts>-1</reconnect-attempts>
                <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>cluster-cta-app01</connector-ref>
                    <connector-ref>cluster-cta-app03</connector-ref>
                </static-connectors>
            </cluster-connection>

            <cluster-connection name="topic-cluster">
                <address>jms.topic.clustered</address>
                <connector-ref>netty-connector</connector-ref>
                <check-period>600000</check-period>
                <connection-ttl>-1</connection-ttl>
                <retry-interval>500</retry-interval>
                <retry-interval-multiplier>1.0</retry-interval-multiplier>
                <max-retry-interval>5000</max-retry-interval>
                <reconnect-attempts>-1</reconnect-attempts>
                <use-duplicate-detection>true</use-duplicate-detection>
                <forward-when-no-consumers>false</forward-when-no-consumers>
                <max-hops>1</max-hops>

                <static-connectors>
                    <connector-ref>cluster-cta-app01</connector-ref>
                    <connector-ref>cluster-cta-app03</connector-ref>
                </static-connectors>
             </cluster-connection>
           </cluster-connections>

            <security-settings>
                <security-setting match="#">
                    <permission type="send" roles="guest"/>
                    <permission type="consume" roles="guest"/>
                    <permission type="createNonDurableQueue" roles="guest"/>
                    <permission type="deleteNonDurableQueue" roles="guest"/>
                </security-setting>
            </security-settings>

            <address-settings>
                <address-setting match="#">
                    <dead-letter-address>jms.queue.DLQ</dead-letter-address>
                    <expiry-address>jms.queue.ExpiryQueue</expiry-address>
                    <redelivery-delay>0</redelivery-delay>
                    <max-size-bytes>104857600</max-size-bytes>
                    <page-size-bytes>10485760</page-size-bytes>
                    <address-full-policy>DROP</address-full-policy>
                    <message-counter-history-day-limit>10</message-counter-history-day-limit>
                </address-setting>
            </address-settings>

            <jms-connection-factories>
                <connection-factory name="InVmConnectionFactory">
                    <connectors>
                        <connector-ref connector-name="in-vm"/>
                    </connectors>
                    <entries>
                        <entry name="java:/ConnectionFactory"/>
                    </entries>
                    <client-failure-check-period>604800000</client-failure-check-period>
                    <connection-ttl>-1</connection-ttl>
                    <retry-interval>1000</retry-interval>
                    <retry-interval-multiplier>1.0</retry-interval-multiplier>
                    <reconnect-attempts>-1</reconnect-attempts>
                </connection-factory>
            </jms-connection-factories>

            <jms-destinations>
                <jms-queue name="clustered.emailQueue">
                    <entry name="queue/clustered.emailQueue"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.emailQueue"/>
                </jms-queue>
                <jms-queue name="clustered.JAFQueue">
                    <entry name="queue/clustered.JAFQueue"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.JAFQueue"/>
                </jms-queue>
                <jms-queue name="clustered.textSearchRegisterQueue">
                    <entry name="queue/clustered.textSearchRegisterQueue"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.textSearchRegisterQueue"/>
                </jms-queue>
                <jms-queue name="clustered.objectChangeLogMail">
                    <entry name="queue/clustered.objectChangeLogMail"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.objectChangeLogMail"/>
                </jms-queue>
                <jms-queue name="clustered.updateTimeframe">
                    <entry name="queue/clustered.updateTimeframe"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.updateTimeframe"/>
                </jms-queue>
                <jms-queue name="SendMailService">
                    <entry name="queue/SendMailService"/>
                    <entry name="java:jboss/exported/jms/queue/SendMailService"/>
                </jms-queue>
                <jms-queue name="clustered.pushChangeRequest">
                    <entry name="queue/clustered.pushChangeRequest"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.pushChangeRequest"/>
                </jms-queue>
                <jms-queue name="clustered.sendInterviewMail">
                    <entry name="queue/clustered.sendInterviewMail"/>
                    <entry name="java:jboss/exported/jms/queue/clustered.sendInterviewMail"/>
                </jms-queue>
                <jms-topic name="clustered.assetCatalogUpdateTopic">
                    <entry name="topic/clustered.assetCatalogUpdateTopic"/>
                    <entry name="java:jboss/exported/jms/topic/clustered.assetCatalogUpdateTopic"/>
                </jms-topic>
            </jms-destinations>
        </hornetq-server>
    </subsystem>

Attachments

Responses