Author: ruwan
Date: Wed Sep 22 16:48:53 2010
New Revision: 1000083

URL: http://svn.apache.org/viewvc?rev=1000083&view=rev
Log:
back porting the axis event notifier API changes

Modified:
    
synapse/branches/2.0/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java

Modified: 
synapse/branches/2.0/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
URL: 
http://svn.apache.org/viewvc/synapse/branches/2.0/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java?rev=1000083&r1=1000082&r2=1000083&view=diff
==============================================================================
--- 
synapse/branches/2.0/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
 (original)
+++ 
synapse/branches/2.0/modules/core/src/main/java/org/apache/synapse/core/axis2/ProxyService.java
 Wed Sep 22 16:48:53 2010
@@ -562,7 +562,9 @@ public class ProxyService implements Asp
                     axisCfg.addServiceGroup(proxyServiceGroup);
                 } else {
                     // Simply add the service to the existing group
-                    axisCfg.addServiceToExistingServiceGroup(proxyService, 
serviceGroup);
+                    AxisServiceGroup proxyServiceGroup = 
axisCfg.getServiceGroup(serviceGroup);
+                    proxyService.setParent(proxyServiceGroup);
+                    proxyServiceGroup.addService(proxyService);
                 }
             }
             this.setRunning(true);
@@ -649,7 +651,7 @@ public class ProxyService implements Asp
 
             AxisService as = 
axisConfig.getServiceForActivation(this.getName());
             as.setActive(true);
-            axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_START, 
as), as);
+            axisConfig.notifyObservers(AxisEvent.SERVICE_START, as);
             this.setRunning(true);
             auditInfo("Started the proxy service : " + name);
         } else {
@@ -680,7 +682,7 @@ public class ProxyService implements Asp
                 AxisService as = axisConfig.getService(this.getName());
                 if (as != null) {
                     as.setActive(false);
-                    axisConfig.notifyObservers(new 
AxisEvent(AxisEvent.SERVICE_STOP, as), as);
+                    axisConfig.notifyObservers(AxisEvent.SERVICE_STOP, as);
                 }
                 this.setRunning(false);
                 auditInfo("Stopped the proxy service : " + name);


Reply via email to