0

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>
4

1 に答える 1

0

回答が見つかりました 参考までに- streamCache="true" を設定する必要があります

于 2012-11-07T13:20:26.967 に答える