You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/07/03 13:33:50 UTC

[1/2] git commit: CAMEL-7503 Added info log to show CxfProducer will pick the first avaliable operation if the operation name header is not specified

Repository: camel
Updated Branches:
  refs/heads/camel-2.12.x a6f32cc00 -> 82d26cbcc
  refs/heads/camel-2.13.x 268f2cff9 -> db3ffd0be


CAMEL-7503 Added info log to show CxfProducer will pick the first avaliable operation if the operation name header is not specified


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/db3ffd0b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/db3ffd0b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/db3ffd0b

Branch: refs/heads/camel-2.13.x
Commit: db3ffd0be9b60600190b9ca072c1b58b47c6e873
Parents: 268f2cf
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Jul 3 16:49:08 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Jul 3 19:33:08 2014 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/cxf/CxfProducer.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/db3ffd0b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
index 017f945..8246c4f 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
@@ -332,10 +332,12 @@ public class CxfProducer extends DefaultProducer implements AsyncProcessor {
         BindingOperationInfo answer = null;
         String lp = ex.getIn().getHeader(CxfConstants.OPERATION_NAME, String.class);
         if (lp == null) {
+            LOG.info("CxfProducer cannot find the {} from message header, try to use the defaultOperationName", CxfConstants.OPERATION_NAME);
             lp = endpoint.getDefaultOperationName();
         }
         if (lp == null) {
-            LOG.debug("Try to find a default operation. You should set '{}' in header.", CxfConstants.OPERATION_NAME);
+            LOG.info("CxfProducer cannot find the {} from message header and there is no DefaultOperationName setting, CxfProducer will pick up the first available operation.",
+                     CxfConstants.OPERATION_NAME);
             Collection<BindingOperationInfo> bois = 
                 client.getEndpoint().getEndpointInfo().getBinding().getOperations();
             


[2/2] git commit: CAMEL-7503 Added info log to show CxfProducer will pick the first avaliable operation if the operation name header is not specified

Posted by ni...@apache.org.
CAMEL-7503 Added info log to show CxfProducer will pick the first avaliable operation if the operation name header is not specified


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/82d26cbc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/82d26cbc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/82d26cbc

Branch: refs/heads/camel-2.12.x
Commit: 82d26cbccbe781ecb90e3927561b797817ba28f5
Parents: a6f32cc
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Jul 3 16:49:08 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Jul 3 19:33:25 2014 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/cxf/CxfProducer.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/82d26cbc/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
index 017f945..8246c4f 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
@@ -332,10 +332,12 @@ public class CxfProducer extends DefaultProducer implements AsyncProcessor {
         BindingOperationInfo answer = null;
         String lp = ex.getIn().getHeader(CxfConstants.OPERATION_NAME, String.class);
         if (lp == null) {
+            LOG.info("CxfProducer cannot find the {} from message header, try to use the defaultOperationName", CxfConstants.OPERATION_NAME);
             lp = endpoint.getDefaultOperationName();
         }
         if (lp == null) {
-            LOG.debug("Try to find a default operation. You should set '{}' in header.", CxfConstants.OPERATION_NAME);
+            LOG.info("CxfProducer cannot find the {} from message header and there is no DefaultOperationName setting, CxfProducer will pick up the first available operation.",
+                     CxfConstants.OPERATION_NAME);
             Collection<BindingOperationInfo> bois = 
                 client.getEndpoint().getEndpointInfo().getBinding().getOperations();