[ https://issues.apache.org/jira/browse/QPIDJMS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903071#comment-14903071 ]
Timothy Bish commented on QPIDJMS-113: -------------------------------------- Had a look at the doc update and it seems to now correctly cover the failover provider and the way that URI options should be applied. > update URI option documentation to be clearer and fix misleading section > ------------------------------------------------------------------------ > > Key: QPIDJMS-113 > URL: https://issues.apache.org/jira/browse/QPIDJMS-113 > Project: Qpid JMS > Issue Type: Improvement > Components: qpid-jms-client > Affects Versions: 0.5.0 > Environment: Java 1.7 > Reporter: Tomas Vavricka > Assignee: Robbie Gemmell > Labels: connectionfactory > Fix For: 0.6.0 > > > When connection string is for example: > {{failover:(amqp://server:21415?amqp.idleTimeout=0&jms.username=admin&jms.password=admin&amqp.saslMechanisms=PLAIN&jms.forceAsyncSend=false&jms.alwaysSyncSend=true&jms.sendAcksAsync=false)?failover.maxReconnectAttempts=5&failover.reconnectDelay=60000}} > URI options _jms.admin_, _jms.password_, _amqp.saslMechanisms_ (possibly all > of them) are ignored and set to '_null_' in class _JmsConnectionFactory_. > Because of that client fails to connect to broker with message (client > immediately tries to reconnect with same result): > {{2015-09-21 15:52:23 +0200 INFO org.apache.qpid.jms.sasl.SaslMechanismFinder > - Best match for SASL auth was: null}} > {{2015-09-21 15:52:23 +0200 INFO org.apache.qpid.jms.sasl.SaslMechanismFinder > - Best match for SASL auth was: null}} > {{2015-09-21 15:52:23 +0200 INFO org.apache.qpid.jms.sasl.SaslMechanismFinder > - Best match for SASL auth was: null}} > {{2015-09-21 15:52:23 +0200 INFO org.apache.qpid.jms.sasl.SaslMechanismFinder > - Best match for SASL auth was: null}} > {{...}} > When I use connection string without failover everything goes as is expected. > Working connection string below: > {{connectionfactory.connection=amqp://server:21415?amqp.idleTimeout=0&jms.username=admin&jms.password=admin&jms.forceAsyncSend=false&jms.alwaysSyncSend=true&jms.sendAcksAsync=false}} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org