This content has been marked as final.
Show 1 reply
-
1. Re: failover transportoptions
garytully Mar 16, 2011 1:43 PM (in response to satyab7)URI query parameters in ActiveMQ use the http form content type.
So the parameters begin with the '?' (indicating the start of a query) and attribute values are separated from each other using '&'.
In xml, html, xhtml, because '&' is a reserved character, it needs to be replaced with its corresponding entity reference: '&'.
This is the case in ActiveMQ xml configuration. For example when two parameters are supplied in uri attribute, the entity reference is used as a separator
<networkConnector uri="static:(failover:(tcp://localhost:32258,tcp://localhost:32259)?randomize=false&maxReconnectAttempts=1)"/>
When parsing or adding query parameters to URI, ActiveMQ does not respect ';' as a separator.
Your failover URI should look like
failover:(tcp://11.111.11.111:61618)?timeout=1000&maxReconnectDelay"