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/12/23 10:00:41 UTC

svn commit: r358778 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: Constants.java deployment/DeploymentConstants.java deployment/ServiceBuilder.java

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));
 



Re: svn commit: r358778 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: Constants.java deployment/DeploymentConstants.java deployment/ServiceBuilder.java

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Fri, 2005-12-23 at 09:00 +0000, deepal@apache.org wrote:
> 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"

Can we please lower-case those?

Thanks,

Sanjiva.


Re: svn commit: r358778 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: Constants.java deployment/DeploymentConstants.java deployment/ServiceBuilder.java

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Fri, 2005-12-23 at 09:00 +0000, deepal@apache.org wrote:
> 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"

Can we please lower-case those?

Thanks,

Sanjiva.