On 9/13/07, samjoe9998 <[EMAIL PROTECTED]> wrote:
>
> The cluster example inside servicemix 3.1.1 is not a full-fledged
> servicemix.xml.
>
> I followed the instruction as showed in page
> http://incubator.apache.org/servicemix/nmr-flows.html
> Added
> <sm:container flowNames="jms?jmsURL=tcp://IP2:61616">
>   ...
> </sm:container>
> For the servicemix on IP1 machine.
>
> But the service unit in IP1 still couldn't route message to an endpoint on
> IP2 machine. It couldn't find the endpoint on IP2.
>
> Is flowNames="jms?jmsURL=tcp://IP2:61616" the only thing we need to broke
> two NMRs? or do we need to change any configurations inside activemq.xml?

There's no need to use the flowNames attribute because the flows are
already defined in the conf/servicemix.xml file in the
broker/securedBroker/flows element. Below is the snippet:

    <sm:broker>
      <sm:securedBroker authorizationMap="#authorizationMap">
        <sm:flows>
          <sm:sedaFlow />
          <sm:jmsFlow jmsURL="${activemq.url}" />
          <sm:jcaFlow connectionManager="#connectionManager"
                      jmsURL="${activemq.url}" />
        </sm:flows>
      </sm:securedBroker>
    </sm:broker>

Your issue is that you must use the conf/activemq.xml file to define
an ActiveMQ network of brokers
(http://activemq.apache.org/networks-of-brokers.html) so that you have
a proper cluster.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Reply via email to