Hi,

I try to used Cluster example in ServiceMix ESB: 3.0-SNAPSHOT.
All work fine with this example and I lauch two servicemix instances into the same machine with multicast://default in discoveryUri and networkConnector. In fact I lauch first the poller and after the writer (contrary the Readme file say) otherwise I have this exception : javax.jbi.messaging.MessagingException: Failed to resolve endpoint: org.apache.servicemix.jbi.NoServiceAvailableException: Cannot find an instance of the service: {http://servicemix.org/demo/}fileSender

But now I want to test a "really" cluster with two differents machines, I try to change my activemq.xml file configuration because autodiscovery can't work in this case I supposed...
So like some persons say in this list I try static configuration...
Machine A :
servicemix-poller.xml
activemq.xml
   <transportConnectors>
      <transportConnector uri="tcp://localhost:61616"/>
   </transportConnectors>

   <networkConnectors>
<networkConnector uri="static://(tcp://machineB:61616,tcp://localhost:61616)"/>
   </networkConnectors>


Machine B:
servicemix-writer.xml
activemq.xml
   <transportConnectors>
      <transportConnector uri="tcp://localhost:61616"/>
   </transportConnectors>

   <networkConnectors>
<networkConnector uri="static://(tcp://machineA:61616,tcp://localhost:61616)"/>
   </networkConnectors>

If I lauch into machineB the servicemix instance writer, I have an ConnectionRefused exception If I lauch into machineA the servicemix instance pooler, I have an error : Cannot find an instance of the service fileSender

So I supposed that my configuration is bad and the two activeMQ instances don't communicate themself...

Someone can help me pleased ?


Jérôme


Reply via email to