activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walace Rocha <wro...@mhave.com>
Subject Network of brokers problem
Date Thu, 29 Jun 2006 13:39:11 GMT

I configured a network of brokers with two brokers locally.
I am testing the failover feature when one or two brokers goes down.
My application uses about ten queues. One connection for each queue.
I start the two brokers and my app. If I stop broker1 and send a message
(that traverse some queues),
the application can not process the message. If I restart broker1, the
application can not process the message yet.
When I stop broker2, the execution is done succesfully.
If I stop the two brokers and restart only one, the application run
succesfully too.

I connect to the brokers via
uri="failover:tcp://localhost:61616,tcp://localhost:61617".

I would like to know if something is wrong with my configuration?

Broker1:

<beans xmlns="http://activemq.org/config/1.0">
  <broker useJmx="false" persistent="false" brokerName="broker1">

  <persistenceAdapter>
		<memoryPersistenceAdapter/>
    </persistenceAdapter>
  
    <transportConnectors>
       <transportConnector uri="tcp://localhost:61616" />
    </transportConnectors>
    
    <networkConnectors>
      <networkConnector uri="static:(tcp://localhost:61617)" failover="true"
/>
    </networkConnectors>
  </broker>
</beans>


Broker2:

<beans xmlns="http://activemq.org/config/1.0">
  <broker useJmx="false" persistent="false" brokerName="broker2">
  
    <persistenceAdapter>
		<memoryPersistenceAdapter/>
    </persistenceAdapter>
  
    <transportConnectors>
       <transportConnector uri="tcp://localhost:61617"/>
    </transportConnectors>
    
    <networkConnectors>
      <networkConnector uri="static:(tcp://localhost:61616)"
failover="true"/>
    </networkConnectors>
    
  </broker>
</beans>
-- 
View this message in context: http://www.nabble.com/Network-of-brokers-problem-tf1867556.html#a5102931
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message