[ 
https://issues.apache.org/jira/browse/AMQ-3406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dejan Bosanac resolved AMQ-3406.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.6.0
         Assignee: Dejan Bosanac

Patch applied with svn revision 1148646. Thanks!

> Enable BrokerServiceAware support for DiscoveryAgent
> ----------------------------------------------------
>
>                 Key: AMQ-3406
>                 URL: https://issues.apache.org/jira/browse/AMQ-3406
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: Transport
>    Affects Versions: 5.5.0
>         Environment: All environment
>            Reporter: Samuel Liard
>            Assignee: Dejan Bosanac
>              Labels: BrokerServiceAware, DiscoveryAgent
>             Fix For: 5.6.0
>
>         Attachments: TransportConnector.java
>
>
> 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to