You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Jerome Camilleri <je...@bull.net> on 2006/04/26 17:08:44 UTC

Cluster example questions

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



Re: Cluster example questions

Posted by mqaiserm <Qa...@revolution.com>.
can you share your servicemix.xml and activemq.xml for clustering in same
machine ?
--
View this message in context: http://www.nabble.com/Cluster-example-questions-t1512307.html#a4106602
Sent from the ServiceMix - User forum at Nabble.com.


Re: Cluster example questions

Posted by Guillaume Nodet <gn...@gmail.com>.
Maybe you should try the ActiveMQ web site or user list ?

Cheers,
Guillaume Nodet

On 4/26/06, Jerome Camilleri <je...@bull.net> wrote:
> 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
>
>
>