天天看點

基于apache camel的fuse 學習筆記(2)

1.為了配置一個components,如果此components沒有包含在core中,那麼需要導入它。

   導入的方式有三種(url:prog_guid.pdf的56頁):

  (1).CamelContext.addComponent();

  (2).spring configuration

  (3).auto-discover

2.運作例子,camel官方有例子 ;fuse安裝好後也有examples.(兩則有略微的差别!)

3.可以直接在fuse的安裝目錄下,mvn install此example,然後運作包含main()的class檔案.

   command:mvn exec:java -Dtarget.main.class=org.apache.camel.example.cxf.CamelCxfExample

4.若想拷貝到别的目錄下進行安裝的話,改一下pom.xml裡面的目錄名即可.