Skip to main content

Avoid camel dependencies

Where possible try to avoid using camel specific classes like org.apache.camel.exchange. Camel provides automatic type conversion, this helps to develop Java beans independent from camel packages.

Using annotations is the second best approach, if camel specific values are required. Working with the org.apache.camel.exchange object should be avoided as much as possible, because changes in the exchange object itself can easily lead into undesired behaviour.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!