What is a connection url you're using?

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Mon, Sep 13, 2010 at 1:56 PM, activeMqUser
<manoranjan.si...@connectm.com> wrote:
>
> Hello,
>
> i am facing a problem while implementing FailOver in activeMQ.
> I have 3 Brokers. Where i have made one Network by enabling
>
> <networkConnectors>
>      <networkConnector name="Network-Broker"
>
> uri="static:(failover:(tcp://localhost:5001,tcp://localhost:5002)?randomize=false)"
>        dynamicOnly="true"
>        networkTTL="3"
>        duplex="true"/>
> </networkConnectors>
>
> and other two are stand alone.
>
> My Network broker is running on 5009 port. I started all the Brokers one by
> one(first 5001 then 5002 and then 5009). So as expected the Network Broker
> which is running on 5009 is successfully connected to the Broker running on
> 5001 as i can confirm from the below stack.
>
>  INFO | Establishing network connection from vm://amq3 to
> failover:(tcp://localhost:5001,tcp://localhost:5002)?randomize=false
>  INFO | Connector vm://amq3 Started
>  INFO | Successfully connected to tcp://localhost:5001
>  INFO | Network Connector Network-Broker Started
>
> I am starting My Application which will create One producer and consumer by
> connecting to the Network Broker which is running on 5009 port.
> My requirement is when i stop the Network Broker to which my Application is
> connected on 5009 it should try to connect to either Broker on 5001 or 5002
> and my Application should not fail. Currently what is happening is, my
> Application is trying to connect to the Broker reconnect to 5009 port which
> is not available , so it is keep on trying. Is it possible that as i have a
> Network of Broker(5009 , 5001 , 5002) My application will reconnect to
> either 5001 or 5002 ?
>
> I am not sure if "what i am looking for is supported or not". If i have
> understood the concept of FailOver then please correct me.
>
> But this is my requirement. If you can suggest a better approach i will be
> more happy to see that.
>
> Thanks in advance
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Failover-problem-tp2537292p2537292.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to