Merge pull request #16 from auke-/fix-notify-when-module-engaged

Notify observers when engaging proxy modules
diff --git a/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java b/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
index 4b500a0..25bac3d 100644
--- a/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
+++ b/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
@@ -592,8 +592,7 @@
         if (wsAddrEnabled) {
             auditInfo("WS-Addressing is enabled for service : " + name);
             try {
-                proxyService.engageModule(axisCfg.getModule(
-                    SynapseConstants.ADDRESSING_MODULE_NAME), axisCfg);
+                proxyService.engageModule(axisCfg.getModule(SynapseConstants.ADDRESSING_MODULE_NAME));
             } catch (AxisFault axisFault) {
                 handleException("Error loading WS Addressing module on proxy service : " + name, axisFault);
             }
@@ -603,8 +602,7 @@
         if (wsSecEnabled) {
             auditInfo("WS-Security is enabled for service : " + name);
             try {
-                proxyService.engageModule(axisCfg.getModule(
-                    SynapseConstants.SECURITY_MODULE_NAME), axisCfg);
+                proxyService.engageModule(axisCfg.getModule(SynapseConstants.SECURITY_MODULE_NAME));
             } catch (AxisFault axisFault) {
                 handleException("Error loading WS Sec module on proxy service : "
                         + name, axisFault);