103.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
오브젝트입니다.