activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: How to forward a topic using network of brokers
Date Thu, 21 May 2015 15:13:07 GMT
Actually, try this instead:
<networkConnectors>
    <networkConnector name="linkToBrokerB"
uri="static:(tcp://localhost:61616)">
        <dynamicallyIncludedDestinations>
            <queue physicalName=">"/>
            <topic physicalName=">"/>
        </dynamicallyIncludedDestinations>
    </networkConnector>
</networkConnectors>

If that works, try:
<networkConnectors>
    <networkConnector name="linkToBrokerB"
uri="static:(tcp://localhost:61616)">
        <dynamicallyIncludedDestinations>
            <queue physicalName=">"/>
            <topic physicalName="VirtualTopic.IS.Event.EventName"/>
        </dynamicallyIncludedDestinations>
    </networkConnector>
</networkConnectors>

And if that works, try:
<networkConnectors>
    <networkConnector name="linkToBrokerB"
uri="static:(tcp://localhost:61616)">
        <dynamicallyIncludedDestinations>
            <queue
physicalName="Consumer.*.VirtualTopic.IS.Event.EventName"/>
            <topic physicalName="VirtualTopic.IS.Event.EventName"/>
        </dynamicallyIncludedDestinations>
    </networkConnector>
</networkConnectors>

Tim

On Thu, May 21, 2015 at 8:35 AM, Tim Bain <tbain@alumni.duke.edu> wrote:

> Wait, what?  I thought your configuration was <topic
> physicalName="PRICE.STOCK.>"/>; where did virtual topics come from?  Maybe
> you should describe exactly what you're actually doing, to avoid any
> confusion...
>
> If you configure
> <networkConnectors>
>     <networkConnector name="linkToBrokerB"
> uri="static:(tcp://localhost:61616)">
>         <dynamicallyIncludedDestinations>
>             <queue physicalName=">"/>
>             <topic physicalName=">"/>
>         </dynamicallyIncludedDestinations>
>         <excludedDestinations>
>             <queue physicalName="Consumer.*.VirtualTopic.>"/>
>         </excludedDestinations>
>     </networkConnector>
> </networkConnectors>
> do you get any topic messages bridged?  (Note that you don't want to
> forward both Consumer.*.VirtualTopic.> and VirtualTopic.>; see the note at
> the bottom of http://activemq.apache.org/virtual-destinations.html.)
>
> If no messages are getting forwarded, attach JConsole to broker A and look
> for a consumer for B in the list of consumers on
> VirtualTopic.IS.Event.EventName.  If you see that, it means your network
> bridge configuration is OK and something's wrong on broker B; if not, it
> means that there's still something going wrong for the network bridge
> configuration.  Either way, you'll have a better idea of where to focus.
>
> Tim
>
> On Wed, May 20, 2015 at 9:29 PM, josealvarado <
> josealvarado@inspiredsystems.com.au> wrote:
>
>> Thanks for your reply
>>
>> I tried using the ">" but it does not forward anything. I can see that the
>> topic has a consumer and that broker B is connected to broker A in the
>> "network" tab but it does not forward my topic as it does with my queues.
>>
>> this is the line I have in my configuration:
>> <topic physicalName="VirtualTopic.IS.Event.EventName"/>
>>
>> the physical name is the same one as it appears under "topics" category.
>> do
>> you know if there's any way that I can forward it as a queue using the
>> "Consumer.Service.VirtualTopic...."?
>>
>> or do you have any more suggestions?
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context:
>> http://activemq.2283324.n4.nabble.com/How-to-forward-a-topic-using-network-of-brokers-tp4696688p4696745.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message