cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clecl...@apache.org
Subject svn commit: r893250 - in /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client: AbstractClient.java ClientProxyImpl.java
Date Tue, 22 Dec 2009 18:05:46 GMT
Author: cleclerc
Date: Tue Dec 22 18:05:45 2009
New Revision: 893250

URL: http://svn.apache.org/viewvc?rev=893250&view=rev
Log:
[CXF-2541] JMX Per Operation ResponseTime not collected for JAX-RS services
AbstractClient : operation.name must be defined in the exchange, not in the message
ClientProxyImpl : define the invoked Method in the exchange to let the ClientFaultConverter
(or equivalent) figure out whether it is an UNCHECKED_APPLICATION_FAULT or a CHECKED_APPLICATION_FAULT

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java?rev=893250&r1=893249&r2=893250&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/AbstractClient.java
Tue Dec 22 18:05:45 2009
@@ -587,7 +587,7 @@
     }
     
     protected void setPlainOperationNameProperty(Message outMessage, String name) {
-        outMessage.put("org.apache.cxf.resource.operation.name", name);
+        outMessage.getExchange().put("org.apache.cxf.resource.operation.name", name);
     }
     
 }

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java?rev=893250&r1=893249&r2=893250&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
Tue Dec 22 18:05:45 2009
@@ -415,6 +415,7 @@
         }
         outMessage.setContent(OperationResourceInfo.class, ori);
         setPlainOperationNameProperty(outMessage, ori.getMethodToInvoke().getName());
+        outMessage.getExchange().put(Method.class, ori.getMethodToInvoke());
         boolean isForm = types.containsKey(ParameterType.FORM);
         if (bodyIndex != -1 || isForm) {
             outMessage.put("BODY_INDEX", bodyIndex);



Mime
View raw message