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
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