Created
April 6, 2015 23:19
-
-
Save ccampo133/4d25892d57b85597672a to your computer and use it in GitHub Desktop.
Apache Camel Spring Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.camel.builder.RouteBuilder; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.annotation.Bean; | |
@SpringBootApplication | |
public class AdapterApplication { | |
public static void main(final String[] args) { | |
new SpringApplication(AdapterApplication.class).run(args); | |
} | |
@Bean | |
RouteBuilder Router() { | |
return new RouteBuilder() { | |
@Override | |
public void configure() throws Exception { | |
from("file:target/input").to("file:target/output"); | |
} | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment