【问题标题】:How do I log input to a Proxy service in Fuse ESB?如何将输入记录到 Fuse ESB 中的代理服务?
【发布时间】:2015-01-20 06:49:20
【问题描述】:

我在 Fuse ESB 中配置了代理服务。 我想将输入记录到代理中。有一个日志组件,但除了硬编码消息之外,我无法记录任何内容。 我试图记录 $body 以获取 SOAP 消息,但这失败了,因为它似乎中断了在我的代理中传递的消息(我正在重新路由到 ESB 中的另一个端口) 这是我的 blueprint.xml

<?xml version="1.0" encoding="UTF-8"?>
            <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:camel="http://camel.apache.org/schema/blueprint"
                   xsi:schemaLocation="
                   http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
                   http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">

              <camelContext trace="false" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint">
                <route id="httpBridge">
                    <from uri="jetty:http://0.0.0.0:8282/cxf/PersonServiceCF?matchOnUriPrefix=true"/>
                    <log message="&quot;The message contains ${body}&quot;" loggingLevel="INFO" logName="OutputLog" id="OutputLog">
                        <description>logs output
            &lt;log message="&amp;quot;The message contains ${body}&amp;quot;" loggingLevel="INFO" logName="InputLog" id="InputLog"&gt;
                        &lt;description&gt;logs input&lt;/description&gt;
                    &lt;/log&gt;</description>
                    </log>
                    <to uri="jetty:http://localhost:8181/cxf/PersonServiceCF?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"/>
                </route>
            </camelContext>
            </blueprint>

【问题讨论】:

    标签: logging proxy fuseesb


    【解决方案1】:

    找到答案仅供参考 - 您需要在

    上设置 streamCache="true"

    【讨论】:

    • 是的,这是正确的。我们还在骆驼码头文档的顶部对此进行了说明:camel.apache.org/jetty
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-30
    • 2013-07-03
    相关资源
    最近更新 更多