Define routes: Either using Spring xml or Java DSL. Spring xml: <camelContext> <routeBuilder ref="myBuilder" /> //to load the Java DSL routes defined in MyRouteBuilder class <routeContextRef> //to load the routes in <route…
Camel is mainly for integration purpose, in our project we also use it inside the single component to do msg processing. And actually Camel is not good at msg correlation, while CEP does. But since Camel has a lot of useful connectors[solace, our own…
The normal spring bean definition configuration file, the xsi:schemaLocation only has two: beans and spring-beans.xsd. To define camelContext in spring config file, another two should be added: spring and camel-spring-correlate.xsd. And in <camelCont…
原来我一直用的是Camel标记法……收藏学习了. */ Camel标记法采用首字母小写,接下来的单词都以大写字母开头的方法,如myName. Pastal标记法采用首字母大写,接下来的单词都以大写字母开头的方法,如MyName. 匈牙利标记法是在Pastal标记法的基础上,变量名前面加上一个小写字母,或者小写字母的序列,以说明该变量的类型,如sMyName. a Array 数组 b …