You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Murali Mogalayapalli (JIRA)" <ji...@apache.org> on 2017/02/24 12:55:44 UTC
[jira] [Commented] (AMQ-6610) Runtime configuration - Network
connector is not getting registred after the config change
[ https://issues.apache.org/jira/browse/AMQ-6610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882612#comment-15882612 ]
Murali Mogalayapalli commented on AMQ-6610:
-------------------------------------------
[~cshannon] Hi Chris, I have fixed this in my local code. Here is the what needs to be changed. I also enhanced the unit tests in NetworkConnectorTest.java.
The following change needs to happen in org.apache.activemq.plugin.NetworkConnectorProcessor.java file
@Override
public void addNew(Object o) {
DtoNetworkConnector networkConnector = (DtoNetworkConnector) o;
if (networkConnector.getUri() != null) {
try {
DiscoveryNetworkConnector nc = fromDto(networkConnector, new DiscoveryNetworkConnector());
plugin.getBrokerService().addNetworkConnector(nc);
if (plugin.getBrokerService().isUseJmx()) {
plugin.getBrokerService().registerNetworkConnectorMBean(nc);
}
nc.start();
plugin.info("started new network connector: " + nc);
} catch (Exception e) {
plugin.info("Failed to add new networkConnector " + networkConnector, e);
}
}
}
> Runtime configuration - Network connector is not getting registred after the config change
> ------------------------------------------------------------------------------------------
>
> Key: AMQ-6610
> URL: https://issues.apache.org/jira/browse/AMQ-6610
> Project: ActiveMQ
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.14.3
> Environment: Windows
> Reporter: Murali Mogalayapalli
> Assignee: Christopher L. Shannon
>
> Runtime configuration - The network connectors reload is not registering the Network connector Mbean
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)