What is difference between: CamelContext vs ExtendedCamelContext vs SpringCamelContext?

Viewed 409

SpringBoot + ApacheCamel I have problem with *CamelContext I got exception:

Cannot cast org.apache.camel.spring.SpringCamelContext to org.apache.camel.ExtendedCamelContext

during initialization some components. parto of my configuration (pom.xml):

  <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.2.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
  </parent>

...

<dependency>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-spring-boot-starter</artifactId>
  <version>2.25.2</version>
</dependency>

...

Question: How to use these context / which one should be used ?

  • CamelContext aka DefaultCamelContext
  • ExtendedCamelContext
  • SpringCamelContext
0 Answers
Related