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 <willem.ji...@gmail.com> Authored: Thu Jul 3 16:49:08 2014 +0800 Committer: Willem Jiang <willem.ji...@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();