2 Replies Latest reply on Apr 26, 2011 3:34 PM by Roberto Fabrizi

    Possible documentation mistake

    Roberto Fabrizi Newbie

      I've been trying to get the live - backup configuration going, and I've been looking and assimilating the JMS Failover With Transaction Example.

      In said example it says:

       

       

      In this example, the live server is server 1, and the backup server is server 0

      The connection will initially be created to server1, server 1 will crash, and the client will carry on seamlessly on server 0, the backup server.

      1. Get an initial context for looking up JNDI from server #1.           initialContext = getContext(1);

       

      However, after some head banging I noticed that inside TransactionFailoverExample.java it goes:

       

       

               // Step 1. Get an initial context for looking up JNDI from the server #1

               initialContext = getContext(0);

       

      Notice that the same example under the 2.1.2 release looked like this:

       

       

               // Step 1. Get an initial context for looking up JNDI from the server #1

               initialContext = getContext(1);

       

      Therefore it looks like the live and backup servers were swapped in the 2.2.2 release, but the documentation is still referring to the 2.1.2 configuration.

       

      I hope that this could be helpful.