gtully commented on code in PR #6205:
URL: https://github.com/apache/artemis/pull/6205#discussion_r2763244897


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java:
##########
@@ -4682,22 +4682,28 @@ public void reloadConfigurationFile() throws Exception {
    }
 
    private void reloadConfigurationFile(URL xmlConfigUri) throws Exception {
+      Configuration config = new ConfigurationImpl();
       if (xmlConfigUri != null) {
-         Configuration config = new 
FileConfigurationParser().parseMainConfig(xmlConfigUri.openStream());
+         config = new 
FileConfigurationParser().parseMainConfig(xmlConfigUri.openStream());
          LegacyJMSConfiguration legacyJMSConfiguration = new 
LegacyJMSConfiguration(config);
          legacyJMSConfiguration.parseConfiguration(xmlConfigUri.openStream());
-         configuration.setSecurityRoles(config.getSecurityRoles());
-         configuration.setAddressSettings(config.getAddressSettings());
-         
configuration.setDivertConfigurations(config.getDivertConfigurations());
-         
configuration.setAddressConfigurations(config.getAddressConfigurations());
-         configuration.setQueueConfigs(config.getQueueConfigs());
-         
configuration.setBridgeConfigurations(config.getBridgeConfigurations());
-         
configuration.setConnectorConfigurations(config.getConnectorConfigurations());
-         
configuration.setAcceptorConfigurations(config.getAcceptorConfigurations());
-         
configuration.setAMQPConnectionConfigurations(config.getAMQPConnection());
-         configuration.setPurgePageFolders(config.isPurgePageFolders());
       }
-      configuration.parseProperties(propertiesFileUrl);
+      config.parseProperties(propertiesFileUrl);
+      configuration.setStatus(config.getStatus());
+

Review Comment:
   that is exactly the intent, the new config is just for the purpose of being 
reloaded by the reload logic. There is currently no callback for programatic 
config. Typically broker config is read once at startup. The reload logic is 
restricted to the set of accessors that support reload, the bits that are 
copied over after a config is reread.  Then the 
deployReloadableConfigFromConfiguration method does the heavy lifting of 
applying any changes or not to individual components.
   
   So the difference check is all in deployReloadableConfigFromConfiguration



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to