Created
December 18, 2020 01:27
-
-
Save GuilhermeManzano/8933234a198c53dc4b1cb9c444c0b33a to your computer and use it in GitHub Desktop.
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
public class RotaPedidos { | |
public static void main(String[] args) throws Exception { | |
CamelContext context = new DefaultCamelContext(); | |
context.addRoutes(new RouteBuilder()) { | |
@Override | |
public void configure() throws Exception { | |
from("file:pedidos?delay=5s") | |
.log("${id}") | |
.to("file:saida); | |
} | |
}); | |
context.start(); | |
Thread.sleep(20000); | |
context.stop(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment