[jboss-dev-forums] [JBoss Messaging Development] - suggestion for ClientSessionFactory.setBackupConnector
jim stafford
do-not-reply at jboss.com
Tue Aug 2 13:12:15 EDT 2011
jim stafford [http://community.jboss.org/people/jcstaff] created the discussion
"suggestion for ClientSessionFactory.setBackupConnector"
To view the discussion, visit: http://community.jboss.org/message/618868#618868
--------------------------------------------------------------
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
[http://community.jboss.org/message/618868#618868]
Start a new discussion in JBoss Messaging Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2043]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110802/86335088/attachment.html
More information about the jboss-dev-forums
mailing list