You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "David Fischer(Gtalk)" <fi...@gmail.com> on 2011/08/04 20:53:41 UTC
Broker of brokers topic duplicate question
All,
I currently for a network of brokers setup and running with queues
fine. The problem that i am running into is the following:
brokerA <=> brokerB <=> brokerC
if i create a topic pub on brokerA i cannot see the messages on
brokerC with out adding networkTLL > 1. If i do this then as i add
more subscribers i start to get duplicates.
my network connector is as follows:
<networkConnectors>
<networkConnector uri="static://( hostsremovedtoprotect)"
dynamicOnly="true" name="InterTopicconnect" >
<dynamicallyIncludedDestinations>
<topic physicalName="Services.>"/>
</dynamicallyIncludedDestinations>
</networkConnector>
<networkConnector uri="static://(hostsremovedtoprotect )"
conduitSubscriptions="false"
suppressDuplicateQueueSubscriptions="true" networkTTL="4"
name="InterQueueconnect" >
<dynamicallyIncludedDestinations>
<queue physicalName="test"/>
</dynamicallyIncludedDestinations>
</networkConnector>
<networkConnectors>
Does any one has any suggestions?
Re: Broker of brokers topic duplicate question
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,
in case of multiple interconnected brokers you need to use
"suppressDuplicateTopicSubscriptions"
attribute (see for more info
http://activemq.apache.org/networks-of-brokers.html). Also "priority network
dispatch policy" should be used as explained here
https://issues.apache.org/jira/browse/AMQ-2753. We need to document this use
case better.
Regards
--
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Sun, Aug 21, 2011 at 9:27 PM, David Fischer(Gtalk) <fischer.d.r@gmail.com
> wrote:
> All,
>
> I have been testing the spoke hub model and i have yet to be able to
> get a setup that does not duplicate messages if network TTL is greater
> than 1. Does anyone have any insight into Topics and network of
> brokers???
>
> Thanks
>
>
> On Thu, Aug 4, 2011 at 11:53 AM, David Fischer(Gtalk)
> <fi...@gmail.com> wrote:
> > All,
> >
> > I currently for a network of brokers setup and running with queues
> > fine. The problem that i am running into is the following:
> >
> > brokerA <=> brokerB <=> brokerC
> >
> > if i create a topic pub on brokerA i cannot see the messages on
> > brokerC with out adding networkTLL > 1. If i do this then as i add
> > more subscribers i start to get duplicates.
> >
> > my network connector is as follows:
> > <networkConnectors>
> > <networkConnector uri="static://( hostsremovedtoprotect)"
> > dynamicOnly="true" name="InterTopicconnect" >
> > <dynamicallyIncludedDestinations>
> > <topic physicalName="Services.>"/>
> > </dynamicallyIncludedDestinations>
> > </networkConnector>
> > <networkConnector uri="static://(hostsremovedtoprotect )"
> > conduitSubscriptions="false"
> > suppressDuplicateQueueSubscriptions="true" networkTTL="4"
> > name="InterQueueconnect" >
> > <dynamicallyIncludedDestinations>
> > <queue physicalName="test"/>
> > </dynamicallyIncludedDestinations>
> > </networkConnector>
> > <networkConnectors>
> >
> > Does any one has any suggestions?
> >
>
Re: Broker of brokers topic duplicate question
Posted by "David Fischer(Gtalk)" <fi...@gmail.com>.
Thanks for replying.
Yes i have try true and false on the topic setting and still i get duplicates.
If some has a 7 broker "hub/spoke" model configuration setting it
would be awsome.
So here is more information.
does this make sense? All 6 spoke machines have network connections
to each other. the HUB machine is using duplexing with all machines
known.
The reason I need a TTL larger that 1 is that if my link from hub ->
spokeA drops i still need the messages to travel from say spoka
->spokeB -> hub
On Mon, Aug 22, 2011 at 1:20 AM, Dejan Bosanac <de...@nighttale.net> wrote:
> Try turning conduit subscriptions on
>
> http://activemq.apache.org/networks-of-brokers.html#NetworksofBrokers-WhentouseandnotuseConduitsubscriptions
>
>
> Regards
> --
> Dejan Bosanac - http://twitter.com/dejanb
> -----------------
> The experts in open source integration and messaging - http://fusesource.com
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
>
> On Sun, Aug 21, 2011 at 9:27 PM, David Fischer(Gtalk) <fischer.d.r@gmail.com
>> wrote:
>
>> All,
>>
>> I have been testing the spoke hub model and i have yet to be able to
>> get a setup that does not duplicate messages if network TTL is greater
>> than 1. Does anyone have any insight into Topics and network of
>> brokers???
>>
>> Thanks
>>
>>
>> On Thu, Aug 4, 2011 at 11:53 AM, David Fischer(Gtalk)
>> <fi...@gmail.com> wrote:
>> > All,
>> >
>> > I currently for a network of brokers setup and running with queues
>> > fine. The problem that i am running into is the following:
>> >
>> > brokerA <=> brokerB <=> brokerC
>> >
>> > if i create a topic pub on brokerA i cannot see the messages on
>> > brokerC with out adding networkTLL > 1. If i do this then as i add
>> > more subscribers i start to get duplicates.
>> >
>> > my network connector is as follows:
>> > <networkConnectors>
>> > <networkConnector uri="static://( hostsremovedtoprotect)"
>> > dynamicOnly="true" name="InterTopicconnect" >
>> > <dynamicallyIncludedDestinations>
>> > <topic physicalName="Services.>"/>
>> > </dynamicallyIncludedDestinations>
>> > </networkConnector>
>> > <networkConnector uri="static://(hostsremovedtoprotect )"
>> > conduitSubscriptions="false"
>> > suppressDuplicateQueueSubscriptions="true" networkTTL="4"
>> > name="InterQueueconnect" >
>> > <dynamicallyIncludedDestinations>
>> > <queue physicalName="test"/>
>> > </dynamicallyIncludedDestinations>
>> > </networkConnector>
>> > <networkConnectors>
>> >
>> > Does any one has any suggestions?
>> >
>>
>
Re: Broker of brokers topic duplicate question
Posted by Dejan Bosanac <de...@nighttale.net>.
Try turning conduit subscriptions on
http://activemq.apache.org/networks-of-brokers.html#NetworksofBrokers-WhentouseandnotuseConduitsubscriptions
Regards
--
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Sun, Aug 21, 2011 at 9:27 PM, David Fischer(Gtalk) <fischer.d.r@gmail.com
> wrote:
> All,
>
> I have been testing the spoke hub model and i have yet to be able to
> get a setup that does not duplicate messages if network TTL is greater
> than 1. Does anyone have any insight into Topics and network of
> brokers???
>
> Thanks
>
>
> On Thu, Aug 4, 2011 at 11:53 AM, David Fischer(Gtalk)
> <fi...@gmail.com> wrote:
> > All,
> >
> > I currently for a network of brokers setup and running with queues
> > fine. The problem that i am running into is the following:
> >
> > brokerA <=> brokerB <=> brokerC
> >
> > if i create a topic pub on brokerA i cannot see the messages on
> > brokerC with out adding networkTLL > 1. If i do this then as i add
> > more subscribers i start to get duplicates.
> >
> > my network connector is as follows:
> > <networkConnectors>
> > <networkConnector uri="static://( hostsremovedtoprotect)"
> > dynamicOnly="true" name="InterTopicconnect" >
> > <dynamicallyIncludedDestinations>
> > <topic physicalName="Services.>"/>
> > </dynamicallyIncludedDestinations>
> > </networkConnector>
> > <networkConnector uri="static://(hostsremovedtoprotect )"
> > conduitSubscriptions="false"
> > suppressDuplicateQueueSubscriptions="true" networkTTL="4"
> > name="InterQueueconnect" >
> > <dynamicallyIncludedDestinations>
> > <queue physicalName="test"/>
> > </dynamicallyIncludedDestinations>
> > </networkConnector>
> > <networkConnectors>
> >
> > Does any one has any suggestions?
> >
>
Re: Broker of brokers topic duplicate question
Posted by "David Fischer(Gtalk)" <fi...@gmail.com>.
All,
I have been testing the spoke hub model and i have yet to be able to
get a setup that does not duplicate messages if network TTL is greater
than 1. Does anyone have any insight into Topics and network of
brokers???
Thanks
On Thu, Aug 4, 2011 at 11:53 AM, David Fischer(Gtalk)
<fi...@gmail.com> wrote:
> All,
>
> I currently for a network of brokers setup and running with queues
> fine. The problem that i am running into is the following:
>
> brokerA <=> brokerB <=> brokerC
>
> if i create a topic pub on brokerA i cannot see the messages on
> brokerC with out adding networkTLL > 1. If i do this then as i add
> more subscribers i start to get duplicates.
>
> my network connector is as follows:
> <networkConnectors>
> <networkConnector uri="static://( hostsremovedtoprotect)"
> dynamicOnly="true" name="InterTopicconnect" >
> <dynamicallyIncludedDestinations>
> <topic physicalName="Services.>"/>
> </dynamicallyIncludedDestinations>
> </networkConnector>
> <networkConnector uri="static://(hostsremovedtoprotect )"
> conduitSubscriptions="false"
> suppressDuplicateQueueSubscriptions="true" networkTTL="4"
> name="InterQueueconnect" >
> <dynamicallyIncludedDestinations>
> <queue physicalName="test"/>
> </dynamicallyIncludedDestinations>
> </networkConnector>
> <networkConnectors>
>
> Does any one has any suggestions?
>