package de.fred4jupiter.plaincamel;

import org.apache.camel.builder.RouteBuilder;

/**
 * Created by michael on 12.09.2017.
 */
public class MyRoute extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        from("file://target/in?autoCreate=true&move=.done").log("This is the body: ${body}").to("direct:inbox");

        from("direct:inbox").bean(BodyProcessor.class).to("file://target/out");
    }
}

package de.fred4jupiter.plaincamel;

import org.apache.camel.builder.RouteBuilder;

/**
 * Created by michael on 12.09.2017.
 */
public class MyRoute extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        from("file://target/in?autoCreate=true").log("This is the body: ${body}").to("direct:inbox");

        from("direct:inbox").bean(BodyProcessor.class).to("file://target/out");
    }
}

update route