Author: keith
Date: Mon Mar 24 23:36:38 2008
New Revision: 15058

Log:

Fixing a mistake here. We should be populating the registry for working 
services too :). Was only doing it for faulty services



Modified:
   trunk/mashup/java/modules/core/src/org/wso2/mashup/deployers/DBDeployer.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/deployers/DBDeployer.java
==============================================================================
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/deployers/DBDeployer.java    
    (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/deployers/DBDeployer.java    
    Mon Mar 24 23:36:38 2008
@@ -134,6 +134,19 @@
 
         axisService.setParent(axisServiceGroup);
         axisService.setClassLoader(axisConfig.getServiceClassLoader());
+
+        // We are adding/updating the registry with the service data here
+        String path =
+                MashupUtils.populateRegistry(configCtx, currentFile,
+                                             axisService.getDocumentation(), 
name, false,
+                                             
MashupConstants.DATA_SERVICE_MEDIA_TYPE,
+                                             
DBConstants.DB_SERVICE_CONFIG_FILE);
+
+        //Storing the registry path as a service parameter, to be used at 
undeployment time
+        //to remove the service from registry
+        Parameter myRegistryPath = new 
Parameter(MashupConstants.REGISTRY_MASHUP_PATH, path);
+        axisService.addParameter(myRegistryPath);
+
         ArrayList serviceList = new ArrayList();
         serviceList.add(axisService);
 

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to