0 Replies Latest reply on Aug 2, 2011 1:12 PM by jim stafford

    suggestion for ClientSessionFactory.setBackupConnector

    jim stafford Newbie

      In watching my JMS code work in standalone mode I could see where the extra work of the TransportConfiguration.equals() method can be avoided if the following if() statement

       

      if (live.equals(connectorConfig) && backup != null)
      

       

      was re-written to check the backup first

       

      if (backup != null && live.equals(connectorConfig))
      

       

      In my standalone case, backup is always null and is only checked after the details of the equals() are determined.