axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r358778 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: Constants.java deployment/DeploymentConstants.java deployment/ServiceBuilder.java
Date Fri, 23 Dec 2005 09:00:41 GMT
Author: deepal
Date: Fri Dec 23 01:00:35 2005
New Revision: 358778

URL: http://svn.apache.org/viewcvs?rev=358778&view=rev
Log:
added a way to set the service scope , in services.xml undere service element scope attribute
must be there if user want to use scope other than default (default is TranportSessionScop)

<service name="foo" scope="Application">
and sopee can be one of the following
 - "Application";
 - "SOAPSession";
 - "TransportSession";
 - "Request"

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentConstants.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java?rev=358778&r1=358777&r2=358778&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/Constants.java Fri Dec
23 01:00:35 2005
@@ -70,7 +70,7 @@
     /**
      * Field APPLICATION_SCOPE
      */
-    public static final String APPLICATION_SCOPE = "application";
+    public static final String APPLICATION_SCOPE = "Application";
     public static final String SOAP_SESSION_SCOPE = "SOAPSession";
     public static final String TRANSPORT_SESSION_SCOPE = "TransportSession";
     public static final String REQUEST_SCOPE = "Request";

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentConstants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentConstants.java?rev=358778&r1=358777&r2=358778&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentConstants.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/DeploymentConstants.java
Fri Dec 23 01:00:35 2005
@@ -29,14 +29,14 @@
 
     int TYPE_SERVICE = 0;                // is it a service
     int TYPE_MODULE = 1;                // is it a module
-    
+
     String TAG_PHASE_ORDER = "phaseOrder";
     String TAG_PHASE = "phase";
-    String TAG_PARAMETER = "parameter";     
+    String TAG_PARAMETER = "parameter";
     String TAG_MODULE = "module";
     String TAG_MODULE_CONFIG = "moduleConfig";
     String TAG_MESSAGE = "message";
-    String TAG_LISTENER = "listener";     
+    String TAG_LISTENER = "listener";
     String TAG_LABEL = "label";
     String TAG_HOST_CONFIG = "hostConfiguration";
     String TAG_HANDLER = "handler";
@@ -70,6 +70,7 @@
 
     // for parameters
     String ATTRIBUTE_NAME = "name";
+    String ATTRIBUTE_SCOPE = "scope";
     String ATTRIBUTE_LOCKED = "locked";
 
     String PROPERTY_TEMP_DIR = "java.io.tmpdir";

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java?rev=358778&r1=358777&r2=358778&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
Fri Dec 23 01:00:35 2005
@@ -90,6 +90,12 @@
                 }
             }
 
+            //processin Service Scop
+            String sessionScope = service_element.getAttributeValue(new QName(ATTRIBUTE_SCOPE));
+            if (sessionScope != null) {
+                service.setScope(sessionScope);
+            }
+
             // processing servicewide modules which required to engage gloabally
             Iterator moduleRefs = service_element.getChildrenWithName(new QName(TAG_MODULE));
 



Mime
View raw message