activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dboucher <>
Subject can't properly configure failover
Date Wed, 11 Jun 2008 16:45:04 GMT


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)"

    <networkCOnnector uri="static:(tpc://localhost:61617)" failover="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)

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="">

  <broker brokerName="brokerA" persistent="false" useJmx="false">
      <transportConnector uri="tcp://localhost:61616"/>

	<networkConnector uri="static:(tcp://localhost:61617)" failover="true"


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

View raw message