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 + "'.");