我已經創建一個小的基於Java的應用程序使用ServiceMix 3.0與JBI消息。升級ServiceMix 3.0到ServiceMix 6.0與駱駝
應用程序工作,我們正在使用filepoller(每5分鐘)讀取一個文件位置並將文件轉換爲另一種格式,即。 XML到PDF。
我們使用servixmix filewriter組件在其他文件位置上寫入輸出文件。
現在我們需要升級到Apache ServiceMix 6.0和Camel 2.15.2。
我是Apache Camel的新用戶。我已經在servicemix 6.0和camel 2.15.2上完成了一些POC工作,但沒有得到完整的想法,以實現我們的應用場景?
POC像使用文件,計時器,調度程序駱駝組件一樣工作。
CamelContext context = new DefaultCamelContext();
context.addRoutes(new RouteBuilder() {
public void configure() throws Exception {
from("timer://foo?period=1000").process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
System.out.println("Hello world :"
+ new java.util.Date().toString());
}
});
}
});
context.start();
Thread.sleep(10000);
context.stop();
任何人都可以幫助實現上述方案。
請所有建議一些其他方式來獲得場景。
在此先感謝。