0
我在Fuse ESB中配置了一個代理服務。 我想將輸入記錄到代理中。有一個日誌組件,但我無法記錄硬編碼消息以外的任何內容。 我試圖登錄$ body來獲取SOAP消息,但是這樣做會失敗,因爲它似乎中斷了我的代理中傳遞的消息(我正在重新路由到ESB中的另一個端口) 這是我的blueprint.xml如何將輸入記錄到Fuse ESB中的代理服務?
<?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=""The message contains ${body}"" loggingLevel="INFO" logName="OutputLog" id="OutputLog">
<description>logs output
<log message="&quot;The message contains ${body}&quot;" loggingLevel="INFO" logName="InputLog" id="InputLog">
<description>logs input</description>
</log></description>
</log>
<to uri="jetty:http://localhost:8181/cxf/PersonServiceCF?bridgeEndpoint=true&throwExceptionOnFailure=false"/>
</route>
</camelContext>
</blueprint>
是的,這是正確的。我們在駱駝碼頭文檔的頂部也有關於這個的說明:http://camel.apache.org/jetty –