You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Samuel Liard (JIRA)" <ji...@apache.org> on 2011/07/19 11:02:00 UTC
[jira] [Updated] (AMQ-3406) Enable BrokerServiceAware support for
DiscoveryAgent
[ https://issues.apache.org/jira/browse/AMQ-3406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samuel Liard updated AMQ-3406:
------------------------------
Attachment: TransportConnector.java
Modification of createDiscoveryAgent()
> 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
> Labels: BrokerServiceAware, DiscoveryAgent
> 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