activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dboucher <>
Subject Re: can't properly configure failover
Date Thu, 12 Jun 2008 16:24:16 GMT

I've managed to create failover by passing in a uri of
"failover:(tcp://...)". Still don't know why activemq 5.1.0 is acting up,
though, if anyone has an idea.

dboucher wrote:
> Hello,
> I am doing some research on ActiveMQ to use for a project. I am trying to
> create an examplebroker network which should have the ability to failover
> in case one broker dies.
> My first problem is with the current version of ActiveMQ (5.1.0). Using
> either of these lines in my broker xml configuration:
>     <networkConnector uri="failover:(tcp://localhost:61617)"
> dynamicOnly="true"/>
>     <networkCOnnector uri="static:(tpc://localhost:61617)" failover="true"
> dynamicOnly="true"/>
> I get funky errors about the "failover" property. The error from the first
> line says that "failover" is an unrecognized transport method. The error
> from the second line doesn't recognize the property "failover" at all.
> My second problem concerns the configuration using ActiveMQ 4.1.2. Using a
> setup with 2 brokers, one with a failover transport to the other, I use
> the ProducerTool provided by the ActiveMQ examples to send packets to the
> failover broker. When I terminate the failover broker, the Producer throws
> a bunch of exceptions and terminates, instead of failing over to the
> second broker. I'm not entirely sure how the process works, but does the
> Producer need to be able to recognize that the failover broker has shut
> down and connect to the other broker, or should the broker be able to
> handle it behind the curtains?
> Thanks in advance for any help.
> Also, here is the xml configuration I am using for the first (failover)
> broker:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="">
>   <broker brokerName="brokerA" persistent="false" useJmx="false">
>     <transportConnectors>
>       <transportConnector uri="tcp://localhost:61616"/>
>     </transportConnectors>
>     <networkConnectors>
> 	<networkConnector uri="static:(tcp://localhost:61617)" failover="true"
> dynamicOnly="true"/>
>     </networkConnectors>
>     <persistenceAdapter>
>       <memoryPersistenceAdapter/>
>     </persistenceAdapter>
>   </broker>
> </beans>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message