JBoss Community

suggestion for ClientSessionFactory.setBackupConnector

created by jim stafford in JBoss Messaging Development - View the full discussion

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.

Reply to this message by going to Community

Start a new discussion in JBoss Messaging Development at Community