You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Eugene Brian Ong <lo...@gmail.com> on 2012/07/23 13:24:55 UTC

How to use updateURIsURL?

How to use updateURIsURL?

I tried doing these but nothing worked:

<transportConnector name="openwire" uri="tcp://0.0.0.0:61616"
updateURIsURL="${activemq.base}/conf/failover.txt"/>
Result: configuration parsing exception

<transportConnector name="openwire" uri="tcp://
0.0.0.0:61616?updateURIsURL=${activemq.base}/conf/failover.txt"/>
Result: text file isn't read - configuration ignored

<transportConnector name="openwire" uri="failover:tcp://
0.0.0.0:61616?updateURIsURL=${activemq.base}/conf/failover.txt"/>
Result: configuration parsing exception

Thanks

Re: How to use updateURIsURL?

Posted by Gary Tully <ga...@gmail.com>.
That is a client side option, the failover doco has that in the wrong
place, I just fixed it.
see http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java?view=markup
for an example of usage.

failover:()?updateURIsURL=file:///xxx

where the comma separated list of urls is in xxx

On 23 July 2012 12:24, Eugene Brian Ong <lo...@gmail.com> wrote:
> How to use updateURIsURL?
>
> I tried doing these but nothing worked:
>
> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"
> updateURIsURL="${activemq.base}/conf/failover.txt"/>
> Result: configuration parsing exception
>
> <transportConnector name="openwire" uri="tcp://
> 0.0.0.0:61616?updateURIsURL=${activemq.base}/conf/failover.txt"/>
> Result: text file isn't read - configuration ignored
>
> <transportConnector name="openwire" uri="failover:tcp://
> 0.0.0.0:61616?updateURIsURL=${activemq.base}/conf/failover.txt"/>
> Result: configuration parsing exception
>
> Thanks



-- 
http://fusesource.com
http://blog.garytully.com