Author: keith
Date: Fri Apr  4 01:08:38 2008
New Revision: 15549

Log:

Adding the actual service after all processing is done, to make sure that we 
dont have problems if anything fails



Modified:
   
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java

Modified: 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
==============================================================================
--- 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   (original)
+++ 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   Fri Apr  4 01:08:38 2008
@@ -513,9 +513,6 @@
             Function destroy = serviceAnnotationParser.getDestroy();
             String undispatched = serviceAnnotationParser.getUndispatched();
 
-            ArrayList serviceList = new ArrayList();
-            serviceList.add(axisService);
-
             /*
             this.init and this.destroy correspond to service lifecycle 
functions.
             this.init is called upon service deployment and this.destroy is 
called on
@@ -574,6 +571,9 @@
             if (undispatched != null) {
                 
axisService.addParameter(MashupConstants.UNDISPATCHED_OPERATION, undispatched);
             }
+            ArrayList serviceList = new ArrayList();
+            serviceList.add(axisService);
+
             return serviceList;
         } catch (FileNotFoundException e) {
             throw new DeploymentException("JS Service File Not Found", e);

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

Reply via email to