Posts

Showing posts with the label apache-camel

How to use asynchronous routes in Apache Camel Blueprint

Image
How to use asynchronous routes in Apache Camel Blueprint I have a route that has to be asynchronously consumed and I'm using an direct component to refers to it as an alias. <route id="producer_CUSTOMER_INTERACTIONS_ISSUES_RELATIONSHIPS_Topic"> <from uri="direct:test"/> <pollEnrich aggregateOnException="false" id="pollEnrich1" timeout="-1"> <constant>file:mock/customer-interactions-issues-relationships?noop=true&amp;idempotent=false</constant> </pollEnrich> <to uri="kafka:customer-interactions-issues-relationships?brokers=localhost:9092"/> </route> That route has to be consumed by: <route id="1"><from uri="timer://foo?fixedRate=true&amp;period=1&amp;repeatCount=1000"/><to uri="direct:test"/></route> <route id="2"><from uri="timer://foo?...

Can not extend SpringBootServletInitializer while using Apache-Camel Spring starter

Can not extend SpringBootServletInitializer while using Apache-Camel Spring starter I am trying to create a deployable *.war from a Spring Boot application by following their documentation. I am having problem while extending SpringBootServletInitializer. It's giving me a compile time error saying The type org.springframework.web.WebApplicationInitializer cannot be resolved. It is indirectly referenced from required .class files . But in the Maven dependency directory I can clearly see SpringBootServletInitializer.class exists in spring-boot-1.5.10.RELEASE jar. It was downloaded as part of the camel-spring-boot-starter dependency. The type org.springframework.web.WebApplicationInitializer cannot be resolved. It is indirectly referenced from required .class files SpringBootServletInitializer.class spring-boot-1.5.10.RELEASE camel-spring-boot-starter My Main class @SpringBootApplication @EnableAutoConfiguration public class SpringCamelApplication extends SpringBootServletInitiali...