100.18. ディレクトリーから読み込み、java でメッセージを処理します。
from("file://inputdir/").process(new Processor() {
public void process(Exchange exchange) throws Exception {
Object body = exchange.getIn().getBody();
// do some business logic with the input body
}
});
ボディーは、inputdir ディレクトリーにドロップされたファイルを参照する File オブジェクトです。