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"/>
なぜ何かアイデアはありますか?
ありがとう