juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r921909 - /webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/XRegistration.java
Date Thu, 11 Mar 2010 15:56:00 GMT
Author: kstam
Date: Thu Mar 11 15:55:59 2010
New Revision: 921909

URL: http://svn.apache.org/viewvc?rev=921909&view=rev
Log:
JUDDI-370, only set to null if there are no services.

Modified:
    webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/XRegistration.java

Modified: webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/XRegistration.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/XRegistration.java?rev=921909&r1=921908&r2=921909&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/XRegistration.java
(original)
+++ webservices/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/XRegistration.java
Thu Mar 11 15:55:59 2010
@@ -64,7 +64,9 @@ public class XRegistration {
 			businessEntity = fromClerk.findBusiness(entityKey,fromClerk.getUDDINode().getApiNode());
 			log.info("xregister business " + businessEntity.getName().get(0).getValue() + " + from
"
 					+ fromClerk.getName() + " to " + toClerk.getName());
-			businessEntity.setBusinessServices(null);
+			if (businessEntity.getBusinessServices()==null || businessEntity.getBusinessServices().getBusinessService().size()==0)
{
+				businessEntity.setBusinessServices(null);
+			}
 			toClerk.register(businessEntity,toClerk.getUDDINode().getApiNode());
 		} catch (Exception e) {
 			log.error("Could not " + toString() + ". " + e.getMessage() + " " + e.getCause(),e);



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


Mime
View raw message