Question

I am considering developing a custom Camel component for a specific http-based service, in order to encapsulate some specifics of that service. It would seem natural to implement my component in terms of its own route that does some transformations and then delegates to a http4 endpoint.

However, the Camel Documentation does not cover the case of a component being implemented in terms of others, and seems to assume that components are implemented by non-Camel means. But it feels wrong to re-do the httpclient integration, since Camel already has this.

Can a component create its own routes and use other components? If yes, can anyone point to an example?

Was it helpful?

Solution

With the help of camel-context component you can define a route inside of camel-context component.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top