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 ng...@apache.org on 2007/02/07 10:13:34 UTC

svn commit: r504472 - in /webservices/axis2/trunk/java/modules: jaxws/src/org/apache/axis2/jaxws/core/controller/ metadata/src/org/apache/axis2/jaxws/util/

Author: ngallardo
Date: Wed Feb  7 01:13:34 2007
New Revision: 504472

URL: http://svn.apache.org/viewvc?view=rev&rev=504472
Log:
Added marker for JAX-WS invocation pattern for downstream optimization.

Added:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationPattern.java
Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationController.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/Constants.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationController.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationController.java?view=diff&rev=504472&r1=504471&r2=504472
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationController.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationController.java Wed Feb  7 01:13:34 2007
@@ -25,6 +25,7 @@
 import org.apache.axis2.jaxws.core.InvocationContext;
 import org.apache.axis2.jaxws.core.MessageContext;
 import org.apache.axis2.jaxws.i18n.Messages;
+import org.apache.axis2.jaxws.util.Constants;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -87,6 +88,8 @@
         MessageContext request = ic.getRequestMessageContext();
         MessageContext response = null;
 
+        request.getProperties().put(Constants.INVOCATION_PATTERN, InvocationPattern.SYNC);
+        
         // TODO: Place-holder for running the JAX-WS request handler chain
         
         prepareRequest(request);
@@ -125,6 +128,7 @@
         }
         
         MessageContext request = ic.getRequestMessageContext();
+        request.getProperties().put(Constants.INVOCATION_PATTERN, InvocationPattern.ONEWAY);
         
         // TODO: Place-holder to run the JAX-WS request handler chain
         
@@ -160,6 +164,7 @@
         }
         
         MessageContext request = ic.getRequestMessageContext();
+        request.getProperties().put(Constants.INVOCATION_PATTERN, InvocationPattern.ASYNC_POLLING);
 
         // TODO: Place-holder for running the JAX-WS request handler chain
         
@@ -194,7 +199,8 @@
         }
         
         MessageContext request = ic.getRequestMessageContext();
-
+        request.getProperties().put(Constants.INVOCATION_PATTERN, InvocationPattern.ASYNC_CALLBACK);
+        
         // TODO: Place-holder for running the JAX-WS request handler chain
         
         prepareRequest(request);

Added: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationPattern.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationPattern.java?view=auto&rev=504472
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationPattern.java (added)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/core/controller/InvocationPattern.java Wed Feb  7 01:13:34 2007
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.axis2.jaxws.core.controller;
+
+public enum InvocationPattern {
+    SYNC,
+    ONEWAY,
+    ASYNC_CALLBACK,
+    ASYNC_POLLING
+}

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/Constants.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/Constants.java?view=diff&rev=504472&r1=504471&r2=504472
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/Constants.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/Constants.java Wed Feb  7 01:13:34 2007
@@ -37,4 +37,6 @@
     public static String USE_ASYNC_MEP = "org.apache.axis2.jaxws.use.async.mep";
     
     public static final String THREAD_CONTEXT_MIGRATOR_LIST_ID = "JAXWS-ThreadContextMigrator-List";
+    
+    public static final String INVOCATION_PATTERN = "org.apache.axis2.jaxws.invocation.pattern";
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org