Repository: camel Updated Branches: refs/heads/master 74de98f56 -> 75dfe61ed
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/75dfe61e Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/75dfe61e Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/75dfe61e Branch: refs/heads/master Commit: 75dfe61edc1d6f9e2837056189dea5f7e20f1090 Parents: 74de98f 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 16:49: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/75dfe61e/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();