Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3406

Enable BrokerServiceAware support for DiscoveryAgent

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      Please add BrokerServiceAware support for DiscoveryAgent.

      You need to change createDiscoveryAgent method on org.apache.activemq.broker.TransportConnector
      protected DiscoveryAgent createDiscoveryAgent() throws IOException {
      if (discoveryUri != null) {
      DiscoveryAgent agent = DiscoveryAgentFactory.createDiscoveryAgent(discoveryUri);
      if( agent!=null && agent instanceof BrokerServiceAware )

      { ((BrokerServiceAware)agent).setBrokerService(brokerService); }

      return agent;
      }
      return null;
      }

      Thx

      Attachments

        1. TransportConnector.java
          19 kB
          Samuel Liard

        Activity

          People

            dejanb Dejan Bosanac
            sliard Samuel Liard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: