3 Replies Latest reply on Feb 21, 2013 3:18 AM by ataylor

    The connection-factory.failover-on-initial-connection

    guangquanhao

      I use the version of 2.3.BETA3.I had test the failover successfully.But I read this property in the documention.So I set this property like followed

       

      <connection-factory name="NettyConnectionFactory">

            <xa>false</xa>

            <connectors>

               <connector-ref connector-name="netty"/>

            </connectors>

            <entries>

               <entry name="/ConnectionFactory"/>

            </entries>

         <ha>true</ha>

         <block-on-durable-send>false</block-on-durable-send>

            <!-- Pause 1 second between connect attempts -->

         <retry-interval>2000</retry-interval>

         <reconnect-attempts>-1</reconnect-attempts>

         <failover-on-initial-connection>true</failover-on-initial-connection>

         <failover-on-server-shutdown>true</failover-on-server-shutdown>

         <connection-ttl>60000</connection-ttl>

         </connection-factory>

       

      But when I close the master server and the backup server has been lived,and I cannot connect to the server by the JNDI of the master server.I also have problems with that when the server is down,when the client first connect to the server,how it can know the address of the backup server.