Skip to content

Commit

Permalink
save config after loadExtensionSwiftlet
Browse files Browse the repository at this point in the history
  • Loading branch information
iitsoftware committed Aug 29, 2022
1 parent 49053f1 commit d47b7ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/swiftmq/swiftlet/SwiftletManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ public synchronized void loadExtensionSwiftlet(Bundle bundle) throws Exception {
swiftlet.setStartupTime(startupTime);
swiftletTable.put(name, swiftlet);
swiftlet = null;
saveConfiguration();
trace("loadExtensionSwiftlet: '" + name + "' DONE.");
}

Expand Down Expand Up @@ -983,8 +984,6 @@ protected String[] saveConfiguration(RouterConfigInstance entity) {
Entity c = (Entity) configs.get((String) o);
if (c instanceof Configuration)
XMLUtilities.configToXML((Configuration) c, root);
else
XMLUtilities.entityToXML(root, "swiftlet", c, true);
}
XMLUtilities.writeDocument(doc, configFilename);
al.add("Configuration saved to file '" + configFilename + "'.");
Expand Down

0 comments on commit d47b7ce

Please sign in to comment.