axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject svn commit: r109622 - in webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis: deployment deployment/listener deployment/metadata deployment/metadata/phaserule deployment/repository/utill deployment/scheduler engine impl/receivers
Date Fri, 03 Dec 2004 03:50:54 GMT
Author: hemapani
Date: Thu Dec  2 19:50:53 2004
New Revision: 109622

URL: http://svn.apache.org/viewcvs?view=rev&rev=109622
Log:
spell corrections
Added:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentConstants.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListener.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReceiver.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReceiver.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReceiver.java
Removed:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeployCons.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositaryListener.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositaryListenerImpl.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/Reciver.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReciver.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReciver.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReciver.java
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeployCons.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeployCons.java?view=auto&rev=109621
==============================================================================

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentConstants.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentConstants.java?view=auto&rev=109622
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentConstants.java
Thu Dec  2 19:50:53 2004
@@ -0,0 +1,55 @@
+package org.apache.axis.deployment;
+
+/**
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * @author Deepal Jayasinghe
+ *         Oct 18, 2004
+ *         12:54:57 PM
+ *
+ */
+
+/**
+ * DeployCons interface is to keep constent value required for Deployemnt
+ */
+public interface DeploymentConstants {
+    int SERVICE = 0; // if it is a servise
+    int MODULE = 1; // if it is a module
+
+    String SERVICEXML = "META-INF/service.xml";
+    String MODULEXML = "META-INF/module.xml";
+    String PARAMETERST = "parameter";// paramater start tag
+    String HANDERST = "handler";
+    String MODULEST ="module";
+    String PHASEST = "phase";
+    String PHASE_ORDER = "phaseOrder";
+    String TYPEMAPPINGST = "typeMapping";// typeMapping start tag
+    String BEANMAPPINGST = "beanMapping";// beanMapping start tag
+    String OPRATIONST = "operation";// operation start tag
+    String INFLOWST = "inflow";// inflow start tag
+    String OUTFLOWST = "outflow";// outflowr start tag
+    String FAILTFLOWST = "faultflow";// faultflow start tag
+
+    String FOLDE_NAME = "D:/Axis 2.0/projects/Deployement/test-data";
+    String MODULE_PATH = "/modules/";
+    String SERVICE_PATH = "/services/";
+
+    // for jws file extension
+    String JWS_EXTENSION = ".jws";
+
+    String SERVICETAG = "service";
+
+
+}

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentEngine.java
Thu Dec  2 19:50:53 2004
@@ -66,7 +66,7 @@
  *         12:33:17 PM
  *
  */
-public class DeploymentEngine implements DeployCons {
+public class DeploymentEngine implements DeploymentConstants {
 
     private final Scheduler scheduler = new Scheduler();
     /**

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/DeploymentParser.java
Thu Dec  2 19:50:53 2004
@@ -39,7 +39,7 @@
  * this class implements DeployCons to get some constant values need to
  * parse a given document
  */
-public class DeploymentParser implements DeployCons {
+public class DeploymentParser implements DeploymentConstants {
     //server.xml starting tag
     private static final String serverXMLST = "server";
     //module.xml strating tag

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositaryListener.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositaryListener.java?view=auto&rev=109621
==============================================================================

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositaryListenerImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositaryListenerImpl.java?view=auto&rev=109621
==============================================================================

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListener.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListener.java?view=auto&rev=109622
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListener.java
Thu Dec  2 19:50:53 2004
@@ -0,0 +1,51 @@
+package org.apache.axis.deployment.listener;
+
+/**
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * @author Deepal Jayasinghe
+ *         Oct 18, 2004
+ *         12:00:34 PM
+ *
+ */
+
+/**
+ * RepositaryListener is no listent to a specific folder whether the folder is
+ * update eg: remove , added or modified files
+ */
+public interface RepositoryListener {
+
+    /**
+     * this method is to check whether new module is added (or modules)
+     */
+    void checkModules();
+
+    /**
+     * this method is to check whether new service is added (or services)
+     */
+    void checkServices();
+
+    /**
+     * If new services or modules(service or module) are added then this method will call
+     */
+    void update();
+
+    /**
+     * this is to Initialize the Deployment , this only call when the Axis engine start up
+     * Then it should deploy all the WS and modules , and should initialize the WSInfoList
+     */
+    void init();
+
+}
\ No newline at end of file

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListenerImpl.java?view=auto&rev=109622
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/listener/RepositoryListenerImpl.java
Thu Dec  2 19:50:53 2004
@@ -0,0 +1,124 @@
+package org.apache.axis.deployment.listener;
+
+import org.apache.axis.deployment.repository.utill.WSInfoList;
+import org.apache.axis.deployment.DeploymentConstants;
+import org.apache.axis.deployment.DeploymentEngine;
+
+import java.util.Vector;
+import java.io.File;
+
+/**
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * <p/>
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * @author Deepal Jayasinghe
+ *         Oct 18, 2004
+ *         12:16:19 PM
+ *
+ */
+public class RepositoryListenerImpl implements RepositoryListener, DeploymentConstants {
+
+    /**
+     * to store curreently checking jars
+     */
+    private Vector current_jars;
+    /**
+     * Referance to a WSInfoList
+     */
+    private WSInfoList wsinfoList;
+
+    private String folderName;
+
+    public RepositoryListenerImpl(String folderName, DeploymentEngine deploy_engine) {
+        this.folderName = folderName;
+        wsinfoList = new WSInfoList(deploy_engine);
+        // wsinfoList.init();
+        init();
+        //  this.init();
+    }
+
+    public void checkModules() {
+        String modulepath = folderName + MODULE_PATH;
+        searchWS(modulepath, MODULE);
+    }
+
+    public void checkServices() {
+        String modulepath = folderName + SERVICE_PATH;
+        searchWS(modulepath, SERVICE);
+    }
+
+    public void update() {
+        //todo completet this
+        // this call the update method of WSInfoList
+        wsinfoList.update();
+    }
+
+    /**
+     * all the initialization should come here
+     */
+    public void init() {
+        wsinfoList.init();
+        checkModules();
+        checkServices();
+        update();
+    }
+
+    /**
+     * this is the actual method that is call from scheduler
+     */
+    public void startListent() {
+        checkModules();
+        checkServices();
+        update();
+    }
+
+    /**
+     * This method is to search a given folder  for jar files
+     * and added them to a list wich is in the WSInfolist class
+     */
+    private void searchWS(String folderName, int type) {
+        String files[];
+        current_jars = new Vector();
+        File root = new File(folderName);
+        // adding the root folder to the vector
+        current_jars.addElement(root);
+
+        while (current_jars.size() > 0) {         // loop until empty
+            File dir = (File) current_jars.elementAt(0); // get first dir
+            current_jars.remove(0);       // remove it
+            files = dir.list();              // get list of files
+            if(files == null){
+                continue;
+            }
+            for (int i = 0; i < files.length; i++) { // iterate
+                File f = new File(dir, files[i]);
+                if (f.isDirectory()) {        // see if it's a directory
+                    current_jars.insertElementAt(f, 0);
+                } // add dir to start of agenda
+                else if (isJarFile(f.getName())) {
+                    wsinfoList.addWSInfoItem(f, type);
+                }
+            }
+        }
+    }
+
+    private boolean isJarFile(String filename) {
+        // to check whether the file is  a jar file
+        if (!filename.endsWith(".jar")) {
+            return false;
+        } else
+            return true;
+    }
+
+}

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/ServiceMetaData.java
Thu Dec  2 19:50:53 2004
@@ -2,7 +2,7 @@
 
 import java.util.Vector;
 
-import org.apache.axis.deployment.DeployCons;
+import org.apache.axis.deployment.DeploymentConstants;
 import org.apache.axis.deployment.metadata.phaserule.HandlerChainMetaData;
 import org.apache.axis.deployment.metadata.phaserule.HandlerChainMetaDataImpl;
 import org.apache.axis.deployment.metadata.phaserule.PhaseException;
@@ -34,7 +34,7 @@
 /**
  * actual service class which is to deserilize ServiceMetaData.xml
  */
-public class ServiceMetaData implements DeployCons {
+public class ServiceMetaData implements DeploymentConstants {
 
     public static String PROVIDERNAME = "provider";
     public static String STYLENAME = "style";

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/metadata/phaserule/PhaseHolder.java
Thu Dec  2 19:50:53 2004
@@ -2,7 +2,7 @@
 
 import java.util.Vector;
 
-import org.apache.axis.deployment.DeployCons;
+import org.apache.axis.deployment.DeploymentConstants;
 import org.apache.axis.deployment.DeploymentEngine;
 import org.apache.axis.deployment.metadata.HandlerMetaData;
 import org.apache.axis.deployment.metadata.ServerMetaData;
@@ -32,7 +32,7 @@
 /**
  * This class hold all the phases found in the service.xml and server.xml
  */
-public class PhaseHolder implements DeployCons {
+public class PhaseHolder implements DeploymentConstants {
 
     private Vector phaseholder = new Vector();
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/UnZipJAR.java
Thu Dec  2 19:50:53 2004
@@ -25,13 +25,13 @@
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipInputStream;
 
-import org.apache.axis.deployment.DeployCons;
+import org.apache.axis.deployment.DeploymentConstants;
 import org.apache.axis.deployment.DeploymentEngine;
 import org.apache.axis.deployment.DeploymentParser;
 import org.apache.axis.deployment.metadata.ModuleMetaData;
 import org.apache.axis.deployment.metadata.ServiceMetaData;
 
-public class UnZipJAR implements DeployCons {
+public class UnZipJAR implements DeploymentConstants {
     final int BUFFER = 2048;
     /**
      * This method will unzipService the given jar or aar.

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/repository/utill/WSInfoList.java
Thu Dec  2 19:50:53 2004
@@ -1,7 +1,7 @@
 package org.apache.axis.deployment.repository.utill;
 
 import org.apache.axis.deployment.DeploymentEngine;
-import org.apache.axis.deployment.DeployCons;
+import org.apache.axis.deployment.DeploymentConstants;
 
 import java.util.Iterator;
 import java.util.Vector;
@@ -27,7 +27,7 @@
  *         12:13:11 PM
  *
  */
-public class WSInfoList implements DeployCons {
+public class WSInfoList implements DeploymentConstants {
     /**
      * This is to store all the jar files in a specified folder (WEB_INF)
      */

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/deployment/scheduler/SchedulerTask.java
Thu Dec  2 19:50:53 2004
@@ -1,8 +1,8 @@
 package org.apache.axis.deployment.scheduler;
 
-import org.apache.axis.deployment.listener.RepositaryListener;
-import org.apache.axis.deployment.listener.RepositaryListenerImpl;
-import org.apache.axis.deployment.DeployCons;
+import org.apache.axis.deployment.listener.RepositoryListener;
+import org.apache.axis.deployment.listener.RepositoryListenerImpl;
+import org.apache.axis.deployment.DeploymentConstants;
 import org.apache.axis.deployment.DeploymentEngine;
 
 import java.util.TimerTask;
@@ -27,10 +27,10 @@
  *         9:55:11 AM
  *
  */
-public class SchedulerTask implements Runnable, DeployCons {
+public class SchedulerTask implements Runnable, DeploymentConstants {
     final Object lock = new Object();
 
-    private RepositaryListener wsListener;
+    private RepositoryListener wsListener;
 
     int state = VIRGIN;
     static final int VIRGIN = 0;
@@ -46,7 +46,7 @@
     public SchedulerTask(DeploymentEngine deploy_engine, String folderName) {
         //     String filename = FOLDE_NAME; //"D:/Axis 2.0/projects/Deployement/test-data"
;
         //  private  FilesLoader filesLoader = new FilesLoader(filename);
-        wsListener = new RepositaryListenerImpl(folderName, deploy_engine);
+        wsListener = new RepositoryListenerImpl(folderName, deploy_engine);
     }
 
     /**
@@ -58,7 +58,7 @@
     }
 
     private void soundAlarm() {
-        ((RepositaryListenerImpl) wsListener).startListent();
+        ((RepositoryListenerImpl) wsListener).startListent();
         //filesLoader.searchFolder();
     }
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java?view=diff&rev=109622&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java&r1=109621&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java&r2=109622
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java
(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/ReceiverLocator.java
Thu Dec  2 19:50:53 2004
@@ -17,7 +17,7 @@
 package org.apache.axis.engine;
 
 import org.apache.axis.context.MessageContext;
-import org.apache.axis.impl.receivers.InOutSyncReciver;
+import org.apache.axis.impl.receivers.InOutSyncReceiver;
 
 /**
  * @author Srinath Perera(hemapani@opensource.lk)
@@ -28,6 +28,6 @@
         //File wsdlFile = msgCtx.getService().getParameter("wsdlFile");
         //parse the WSDL find the patterns 
         //create a reciver
-        return new InOutSyncReciver();
+        return new InOutSyncReceiver();
     }
 }

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/Reciver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/Reciver.java?view=auto&rev=109621
==============================================================================

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReceiver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReceiver.java?view=auto&rev=109622
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReceiver.java
Thu Dec  2 19:50:53 2004
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis.impl.receivers;
+
+/**
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public class INReceiver {
+
+}

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReciver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/INReciver.java?view=auto&rev=109621
==============================================================================

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReceiver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReceiver.java?view=auto&rev=109622
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReceiver.java
Thu Dec  2 19:50:53 2004
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis.impl.receivers;
+
+/**
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public class InOutAsyncReceiver {
+
+}

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReciver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutAsyncReciver.java?view=auto&rev=109621
==============================================================================

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReceiver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReceiver.java?view=auto&rev=109622
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReceiver.java
Thu Dec  2 19:50:53 2004
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis.impl.receivers;
+
+import org.apache.axis.context.MessageContext;
+import org.apache.axis.engine.AxisFault;
+import org.apache.axis.engine.Provider;
+import org.apache.axis.engine.Receiver;
+import org.apache.axis.engine.Sender;
+import org.apache.axis.impl.handlers.AbstractHandler;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public class InOutSyncReceiver extends AbstractHandler implements Receiver {
+    protected Log log = LogFactory.getLog(getClass()); 
+
+    public void invoke(final MessageContext msgContext) throws AxisFault {
+        if(msgContext.isNewThreadRequired()){
+            Runnable runner = new Runnable() {
+                public void run() {
+                    try{
+                        send(msgContext);
+                    }catch(AxisFault e){
+                        log.error("Exception occured in new thread starting response",e);
+                    }
+                    
+                }
+            }; 
+            Thread thread = new Thread(runner);
+            thread.start();           
+        }else{
+            send(msgContext);
+        }
+    }
+    
+    public void send(MessageContext msgContext)throws AxisFault{
+        Provider provider = msgContext.getService().getProvider();
+        MessageContext outMsgContext = provider.invoke(msgContext);
+        Sender sender = new Sender();
+        sender.send(msgContext);
+    }
+
+}

Deleted: /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReciver.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/receivers/InOutSyncReciver.java?view=auto&rev=109621
==============================================================================

Mime
View raw message