Bug 919016

Summary: Add attributes to "RemoteConnectionFactory" to make it ready for failover in HA profiles
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Miroslav Novak <mnovak>
Component: HornetQAssignee: Jeff Mesnil <jmesnil>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: brian.stansberry, jmesnil
Target Milestone: ER3   
Target Release: EAP 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 17:01:41 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miroslav Novak 2013-03-07 12:15:53 UTC
At this moment "RemoteConnectionFactory" configured in messaging subsystem in standalone-full-ha.xml or domain.xml in "full-ha" profile is not ready to failover by default. Please change:

<connection-factory name="RemoteConnectionFactory">
                        <connectors>
                            <connector-ref connector-name="netty"/>
                        </connectors>
                        <entries>
                            <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
                        </entries>
</connection-factory>

to:
<connection-factory name="RemoteConnectionFactory">
                        <connectors>
                            <connector-ref connector-name="netty"/>
                        </connectors>
                        <entries>
                            <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>
                        </entries>
                        <ha>true</ha>
                        <block-on-acknowledge>true</block-on-acknowledge>
                        <retry-interval>1000</retry-interval>
                        <retry-interval-multiplier>1.0</retry-interval-multiplier>
                        <reconnect-attempts>-1</reconnect-attempts>
</connection-factory>
This will guarantee that clients using this connection factory will failover to backup.

Comment 1 JBoss JIRA Server 2013-03-08 11:01:54 UTC
Jeff Mesnil <jmesnil> made a comment on jira AS7-6694

PR for master branch

Comment 2 JBoss JIRA Server 2013-03-08 17:40:26 UTC
Jeff Mesnil <jmesnil> made a comment on jira AS7-6694

PR merged in master

Comment 4 Miroslav Novak 2013-03-29 11:17:51 UTC
Verified in EAP 6.1.0.ER3. Thanks Jeff!