Failover transport: support priority urls
-----------------------------------------

                 Key: AMQ-3699
                 URL: https://issues.apache.org/jira/browse/AMQ-3699
             Project: ActiveMQ
          Issue Type: New Feature
    Affects Versions: 5.5.0
            Reporter: Dejan Bosanac
            Assignee: Dejan Bosanac
             Fix For: 5.6.0


In some use cases it's important to detect that "local" broker is available and 
force reconnecting to it.

For example if we have url like

{code}failover:(tcp://local:61616,tcp://remote:61616)?priorityBackup=true{code}

should try to backup "local" transport until it's ready and reconnect there 
when available.

By default only the first url is considered "priority". If you want to further 
tune what urls are considered prioritized you can use something like

{code}failover:(tcp://local1:61616,tcp://local2:61616,tcp://remote:61616)?priorityBackup=true&priorityURIs=tcp://local1:61616,tcp://local2:61616{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to