apache-camel-cdi

How to use same CamelContext in multiple jar on the same war

…衆ロ難τιáo~ 提交于 2019-12-19 11:48:12
问题 I'm using the camel 2.16.2 and I need to use the one CamelContext across multiple jars as I need to have all the Camel Routers in to one CamelContext. So my war will have all those jars as maven artifacts. Please let me know how do I handle above scenario? Edit Just to elaborate more on above question. In my war myApp.war, I have initialized the CamelContext. There are three jars myApp1.jar, myApp2.jar and myApp3.jar. Each jar has it own routers defined separately. How do I start the routers

camel-file component filter with cdi

本秂侑毒 提交于 2019-12-12 03:46:34
问题 I'm using camel without the Spring framework (using CDI instead). How can I set a filter for the camel-file component? My filter class looks like this: @Named @Stateless public class MyFilter<T> implements GenericFileFilter<T> { System.out.println("MyFilter was triggered"); ....... So I tried this: <route> <from uri="file://somewhere?filter=#myFilter"/> <to uri="...."/> </route> But I'm getting: java.lang.IllegalArgumentException: Could not find a suitable setter for property: filter as there