You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Christoffer Sawicki <ch...@gmail.com> on 2013/03/27 11:10:39 UTC

Failover URIs with commas

The syntax for failover URIs is failover:uri1,...,uriN.

How can one specify a composite URI that includes a comma?

For example:

I have this failover URI:

failover:(ssl://127.0.0.1:61616?keepAlive=true&socket.enabledCipherSuites=TLS_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_RSA_WITH_AES_256_CBC_SHA,TLS_DHE_DSS_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_C
BC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA)

It is parsed to the following composite URIs:

["ssl://127.0.0.1:61616?keepAlive=true&socket.enabledCipherSuites=TLS_RSA_WITH_AES_256_CBC_SHA",
 "TLS_DHE_RSA_WITH_AES_256_CBC_SHA",
 "TLS_DHE_DSS_WITH_AES_256_CBC_SHA",
 "TLS_RSA_WITH_AES_128_CBC_SHA",
 "TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
 "TLS_DHE_DSS_WITH_AES_128_CBC_SHA"]

Not exactly what I wanted. :)




--
View this message in context: http://activemq.2283324.n4.nabble.com/Failover-URIs-with-commas-tp4665180.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Failover URIs with commas

Posted by Christoffer Sawicki <ch...@gmail.com>.
OK, I figured it out:

The solution is to join the cipher names with "%2C" instead of ",", like
this:

failover:(ssl://…?socket.enabledCipherSuites=TLS_RSA_WITH_AES_256_CBC_SHA%2CTLS_DHE_RSA_WITH_AES_256_CBC_SHA…)

Obvious in hindsight. :)



--
View this message in context: http://activemq.2283324.n4.nabble.com/Failover-URIs-with-commas-tp4665180p4665408.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.