3 つの異なる ~ で区切られたファイルを解析する 3 つのキャメル ルートがあります。Camel bindy を使用して、ファイルを Java オブジェクトに解析しています。私は以下のようなものを持っています
<route>
<from uri ="endpoint1" />
<unmarshal>
<bindy type="Csv" classType="package1.File1Data" />
</unmarshal>
<to uri="bean:process?method=processFile1Data" />
</route>
<route>
<from uri ="endpoint2" />
<unmarshal>
<bindy type="Csv" classType="package2.File2Data" />
</unmarshal>
<to uri="bean:process?method=processFile2Data" />
</route>
<route>
<from uri ="endpoint3" />
<unmarshal>
<bindy type="Csv" classType="package3.File3Data" />
</unmarshal>
<to uri="bean:process?method=processFile3Data" />
</route>
3 つのルートをすべてオンにすると解析エラーが発生しますが、特定の時点で 1 つのルート (1 つのバインド) を保持すると、正常に動作します。
camel-bindy がサポートしていないことをどこかで読みましたが、Bindy で同じ問題に直面した人はいますか?
これが私の依存関係です:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-bindy-starter</artifactId>
<version>2.18.0</version>
</dependency>