2

CXFエンドポイントからSOAPメッセージを取得し、それをコンテンツベースのルーターに送信しようとしています。このルーターは、XMLファイルとしてディレクトリにルーティングします。

これは私のラクダの文脈でのルートです:

<route>
    <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/>
    <choice>
        <when>
            <xpath>/*/*/*[local-name()='inputReportIncident']/*[local-name()='familyName']='Holt'</xpath>
            <to uri="file:target/messages/contentbasedrouting/a?fileName=a.xml"/>
        </when>
        <otherwise>
            <to uri="file:target/messages/contentbasedrouting/otherwise?fileName=otherwise.xml"/>
        </otherwise>
    </choice> 
</route>

コンテンツベースのルーターは正常に機能しますが、空のXMLファイルをディレクトリに送信し、SOAPメッセージが消えます。

CXFエンドポイントではなくディレクトリからSOAPメッセージを取得すると、正常に機能します。私がやった場合:

<from uri="file:target/messages/incoming"/>

それ以外の:

<from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/> 

なぜ何かアイデアはありますか?

ありがとう

4

1 に答える 1

1

はい、その期限のストリーミング。このFAQを参照してください:http://camel.apache.org/why-is-my-message-body-empty.html

于 2012-12-20T05:11:41.933 に答える