apache-camel

Print Apache Camel route to Java DSL


Is there a way to print routes in Java DSL?

I found a way to print my Camel routes in XML DSL using:

ModelHelper.dumpModelAsXml(camelContext, routeDefinition);

or in YAML DSL using:

ModelWriter(stringWriter).writeRoutesDefinition(routesDefinition.get());

But I didn't find a way to print them in Java DSL.


Solution

  • No there is no such feature, and its not planned either.