From d47b7cefb46b210735c6e21a5a16622f01961f5e Mon Sep 17 00:00:00 2001 From: iitsoftware Date: Mon, 29 Aug 2022 15:08:21 +0200 Subject: [PATCH] save config after loadExtensionSwiftlet --- src/main/java/com/swiftmq/swiftlet/SwiftletManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/swiftmq/swiftlet/SwiftletManager.java b/src/main/java/com/swiftmq/swiftlet/SwiftletManager.java index a40517d..e57ab69 100644 --- a/src/main/java/com/swiftmq/swiftlet/SwiftletManager.java +++ b/src/main/java/com/swiftmq/swiftlet/SwiftletManager.java @@ -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."); } @@ -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 + "'.");