Search code examples
javaxmlapache-camelblueprint-osgi

What are good reasons for using Camel XML routes?


The Camel Java DSL provides type-safety, code completion and proper support for refactoring. It also helps to modularize and (unit-)test your code in a great manner.

Speaking for the Camel XML syntax I only see the advantage of being able to modify and reload routes at runtime (e.g. via hawtio).

Obviously I'm really missing something here - so what is the rationale behind the use of Camel XML routes today?


Solution

    1. In-Place editing of routes (although I would discourage doing that)
    2. quick&dirty one-off routes (e.g. routing from test to qa environment) or very simple projects - when you have a container like karaf or servicemix. No need to fire up your IDE/compile. Just write and drop to deploy folder.
    3. Maybe easier for non-developers

    It is a matter of taste and preference.