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 <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: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();