You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2005/03/17 06:17:43 UTC

svn commit: r157898 - webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentConstants.java webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentEngine.java

Author: deepal
Date: Wed Mar 16 21:17:42 2005
New Revision: 157898

URL: http://svn.apache.org/viewcvs?view=rev&rev=157898
Log:
Wrote a service to send message from the server , when the service get deployed it is auto started and running forever

Modified:
    webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentConstants.java
    webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentEngine.java

Modified: webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentConstants.java?view=diff&r1=157897&r2=157898
==============================================================================
--- webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentConstants.java (original)
+++ webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentConstants.java Wed Mar 16 21:17:42 2005
@@ -75,6 +75,8 @@
 
     String TRANSPORTSTAG = "transports";
     String TRANSPORTTAG ="transport";
+    String TRANSPORTSENDER = "transportSender";
+    String TRANSPORTRECEIVER = "transportReceiver";
 
 
     String HOTDEPLOYMENT = "hotdeployment";

Modified: webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentEngine.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentEngine.java?view=diff&r1=157897&r2=157898
==============================================================================
--- webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentEngine.java (original)
+++ webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentEngine.java Wed Mar 16 21:17:42 2005
@@ -96,11 +96,11 @@
         this(RepositaryName,"server.xml");
 
     }
-   /**
-    * this constructor is used to deploy a web service programatically, by using classLoader
-    * and InputStream
-    * @param engineRegistry
-    */
+    /**
+     * this constructor is used to deploy a web service programatically, by using classLoader
+     * and InputStream
+     * @param engineRegistry
+     */
     public DeploymentEngine(EngineRegistry engineRegistry) {
         this.engineRegistry = engineRegistry;
     }
@@ -269,6 +269,14 @@
             String value = (String) para.getValue();
             if("true".equals(value)){
                 Class temp = serviceMetaData.getServiceClass();
+                try {
+                    Thread servie = (Thread)temp.newInstance();
+                    servie.start();
+                } catch (InstantiationException e) {
+                    throw new AxisFault(e.getMessage());
+                } catch (IllegalAccessException e) {
+                    throw new AxisFault(e.getMessage());
+                }
 
             }
         }