Reputation: 1057
I am thinking it would be useful to be useful to the routes in java and have them be convertable to xml automatically. Even if it is not fully convertible at least some measure of it can be done.
Does it already exist in some form ?
Upvotes: 2
Views: 869
Reputation: 19305
From AdviceWith source, there is
ExtendedCamelContext ecc = camelContext.adapt(ExtendedCamelContext.class);
...
ecc.getModelToXMLDumper().dumpModelAsXml(camelContext, definition);
Upvotes: 0
Reputation: 425
As Claus mentioned you can use hawtio for managing camel routes and you can see routes on their xml form, let me enrich his explanation with more pictures;
Here I wrote my routes on java dsl and can see their xml forms
Upvotes: 0
Reputation: 55750
Yes try look at hawtio, which can output the routes in XML. And so can you as there is JMX API's or Java APIs when you run Camel, that can output the running routes in XML, regardless if you coded the routes in Java, Groovy, Scala, XML etc.
Upvotes: 5