That is intentional because the network bridge will intercept and
react to certain advisory messages, but that decision went before the
use of the advisory type for the statistics broker. I guess the
statistics broker could use a different 'type'

This behaviour is implemented in a subscription filter[1] and that is
configurable via a factory entry on the destination policy

I think you are in luck because we ship one variation of that filter
that does not include that check.

<policyEntry ...>
     <conditionalNetworkBridgeFilterFactory />
 </policyEntry>

So long as the advisory messages are not consumer/destination
advisories  (which the stats messages are not) you will be ok.
Failing that you can implement your own filter factory and wire it in
with a bean reference.

[1] 
https://github.com/apache/activemq/blob/20f384ce59b758a0f3c1b0e0620e2efd58ca230a/activemq-client/src/main/java/org/apache/activemq/command/NetworkBridgeFilter.java#L99


On 30 April 2014 09:24, nader <na...@salas.dk> wrote:
> Hi
>
> I have two brokers, A and B on 5.9.1.
> Messages send to broker A is forwarded statically to broker B, defined by
> keyword staticallyIncludedDestinations in activemq.xml, and advisorySupport
> is also disabled.
> Below is the configuration snippet.
> ...
> <networkConnector
>    name="BrokerA.CH"
>    userName="user"
>    password="pass"
>    staticBridge="true"
>    uri="static:(tcp://BrokerB:61616)" networkTTL="3">
>    <staticallyIncludedDestinations> <queue physicalName="Q1"/>
> </staticallyIncludedDestinations>
> </networkConnector>
> ...
>
> I am implementing a heartbeat message with the queue's statistics (brokerA)
> to the other end (brokerB).
>
> Every messages get through, but messages with jmsType of 'Advisory' do not
> forwarded.
>
> Is it by design or a bug?
>
> Can I change this behavior?
>
> Thanks in advance.
>
> Nader
>
>
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Advisory-messages-do-not-forward-on-staticallyIncludedDestinations-tp4680733.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Reply via email to