码迷,mamicode.com
首页 > Web开发 > 详细

Apache Camel

时间:2016-03-22 09:02:10      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:

Apache Camel

1
import org.apache.camel.CamelContext; 2 import org.apache.camel.builder.RouteBuilder; 3 import org.apache.camel.impl.DefaultCamelContext; 4 5 6 public class FileMoveWithCamel { 7 public static void main(String args[]) throws Exception { 8 CamelContext context = new DefaultCamelContext(); 9 context.addRoutes(new RouteBuilder() { 10 public void configure() { 11 //from("file:d:/temp/inbox?noop=true").to("file:d:/temp/outbox"); 12 from("file:d:/test/inbox/?delay=30000").to("file:d:/test/outbox"); 13 } 14 }); 15 context.start(); 16 boolean loop =true; 17 while(loop){ 18 Thread.sleep(25000); 19 } 20 context.stop(); 21 } 22 }

 

Apache Camel

标签:

原文地址:http://www.cnblogs.com/rojas/p/5304634.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!