[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] activemq-artemis pull request #2338: ARTEMIS-2101 Do not cluster OpenWire ad...

Github user clebertsuconic commented on a diff in the pull request:
    --- Diff: artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/ ---
    @@ -154,6 +154,11 @@ public OpenWireProtocolManager(OpenWireProtocolManagerFactory factory, ActiveMQS
           if (cc != null) {
    +      if (supportAdvisory) {
    --- End diff --
    I wouldn't make it dependent on supportAdvisory.
    Say you have two acceptors.. different IPs.. you will have this called twice.
    I would always add the filter, and check if the filter is not part of the expression before you called it.