how I can configure the amq as a message deliver between 3(or more) brokers?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how I can configure the amq as a message deliver between 3(or more) brokers?

dongweizi
This post has NOT been accepted by the mailing list yet.
Hello guys:

I am new to amq.My question as followed:

1)
There are 3 acitvemq in different servers whose IP namely: 192.168.193.252,192.168.193.254,192.168.193.224.
The activemq'version 5.4.3
server OS:Linux suse10

2)the activemq.xml' major content are as followed:
252:
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="static-broker2" dataDirectory="${activemq.base}/data">

       
        <managementContext>
            <managementContext createConnector="true" connectorPort="1100"/>
        </managementContext>

     <networkConnectors>
            <networkConnector uri="static:(tcp://192.168.193.254:61618)" duplex="true"/>
        </networkConnectors>

        <persistenceAdapter>
            <kahaDB directory="${activemq.base}/data/static-broker2/kahadb" />
        </persistenceAdapter>

       
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
        </transportConnectors>



254:
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="static-broker1" dataDirectory="${activemq.base}/data">

       
        <managementContext>
            <managementContext createConnector="true" connectorPort="1101"/>
        </managementContext>

       
        <networkConnectors>
            <networkConnector uri="static:(tcp://192.168.193.224:61616)" duplex="true">
                          <staticallyIncludedDestinations>
                  <queue physicalName="MyQueue"/>
              </staticallyIncludedDestinations>
                    </networkConnector>

        </networkConnectors>

       
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61618"/>
        </transportConnectors>

224:

 <broker xmlns="http://activemq.apache.org/schema/core" brokerName="static-broker3" dataDirectory="${activemq.base}/data">


        <managementContext>
            <managementContext createConnector="true"/>
        </managementContext>

       
        <networkConnectors>
        </networkConnectors>

        <persistenceAdapter>
            <kahaDB directory="${activemq.base}/data/static-broker3/kahadb" />
        </persistenceAdapter>

     
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
        </transportConnectors>
3)
My question is how I can receive a message ( which sent to 252 then forword to 254,and finally to 224) from 224?:
there a one client connect to 252 server and a client send a message to amq'queue in252.I want to receive this message from 224,I mean the message shoud be transfered as 252->254->224.
But unfortunetly,I only receive this message from 252,254,and cant get anything from  224,Although the connection among them have been established.

Can anyone give some instruction?
Thanks in advance!
Reply | Threaded
Open this post in threaded view
|

Re: how I can configure the amq as a message deliver between 3(or more) brokers?

dongweizi
This post has NOT been accepted by the mailing list yet.
can no one  give some help?
Reply | Threaded
Open this post in threaded view
|

Re: how I can configure the amq as a message deliver between 3(or more) brokers?

dongweizi
This post has NOT been accepted by the mailing list yet.
resolve it by myself.just networkttl and duplex
Reply | Threaded
Open this post in threaded view
|

Re: how I can configure the amq as a message deliver between 3(or more) brokers?

liny
Hi dongweizi,

I am newbie and curious what your new configuration is, could you kindly share me?

Thanks.