axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r547621 - /webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceContextCommand.java
Date Fri, 15 Jun 2007 11:11:05 GMT
Author: azeez
Date: Fri Jun 15 04:11:04 2007
New Revision: 547621

URL: http://svn.apache.org/viewvc?view=rev&rev=547621
Log:
Handle the scenario where the service group cannot be founbd. This happens when auto-generated
temp services are added in different nodes


Modified:
    webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceContextCommand.java

Modified: webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceContextCommand.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceContextCommand.java?view=diff&rev=547621&r1=547620&r2=547621
==============================================================================
--- webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceContextCommand.java
(original)
+++ webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/context/commands/UpdateServiceContextCommand.java
Fri Jun 15 04:11:04 2007
@@ -22,6 +22,7 @@
 import org.apache.axis2.context.ServiceContext;
 import org.apache.axis2.context.ServiceGroupContext;
 import org.apache.axis2.description.AxisService;
+import org.apache.axis2.description.AxisServiceGroup;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -71,9 +72,12 @@
             }
             String scope = axisService.getScope();
             if (sgCtx == null) {
-                sgCtx = new ServiceGroupContext(configurationContext,
-                                                configurationContext.getAxisConfiguration().
-                                                        getServiceGroup(serviceGroupName));
+                AxisServiceGroup serviceGroup =
+                        configurationContext.getAxisConfiguration().getServiceGroup(serviceGroupName);
+                if(serviceGroup == null){
+                    return;
+                }
+                sgCtx = new ServiceGroupContext(configurationContext, serviceGroup);
                 sgCtx.setId(serviceGroupContextId);
                 if (scope.equals(Constants.SCOPE_APPLICATION)) {
                     configurationContext.



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message