Is there a tools to convert java dsl to xml ?

2015-06-09 Thread cloud
hi team, Is there a tools to convert java dsl to xml ? Is every java dsl code have a equal xml counterpart? When I am reading the camel document's , there are many snippets code that writen by java dsl . As a new user , sometimes I have to use xml instead of java dsl . In fact , I wa

Re: Is there a tools to convert java dsl to xml ?

2015-06-09 Thread Dan Moore
cloud wrote: > hi team, > > Is there a tools to convert java dsl to xml ? > Is every java dsl code have a equal xml counterpart? > > When I am reading the camel document's , there are many snippets code that > writen by java dsl . > > As a new user , sometimes

Re: Is there a tools to convert java dsl to xml ?

2015-06-09 Thread Wilson MacGyver
don't know of any automated way, but you can get edit access to camel and > make the changes yourself: > http://camel.apache.org/how-do-i-edit-the-website.html > > Dan > > On Tue, Jun 9, 2015 at 3:11 AM, cloud wrote: > > > hi team, > > > > Is there a tools

Re: Is there a tools to convert java dsl to xml ?

2015-06-09 Thread jkorab
Hi, cloud wrote > Is there a tools to convert java dsl to xml ? No, although you can see an XML representation of a route defined in any DSL (Java, XML, Groovy, Scala etc.) by calling a method called dumpRouteAsXml() when looking at it though JMX. cloud wrote > Is every java ds

Re: Is there a tools to convert java dsl to xml ?

2015-06-09 Thread jkorab
I should also say that there is a runtime tool that allows you to see the XML of running routes - HawtIO (http://hawt.io). Jakub -- View this message in context: http://camel.465427.n5.nabble.com/Is-there-a-tools-to-convert-java-dsl-to-xml-tp5768015p5768024.html Sent from the Camel - Users

Re: Is there a tools to convert java dsl to xml ?

2015-06-09 Thread Claus Ibsen
I want to know how could I convert the below code to xml > > from("direct:start") > .setHeader("decisionSlip").method(OrderProcessorBean.class, > "calculateRoute") > .routingSlip("decisionSlip"); > > > thanks. > > > > >

Re: Is there a tools to convert java dsl to xml ?

2015-06-11 Thread cloud
thanks for all ! jkorab , I will read you book , and follow you on Twitter . thanks . -- View this message in context: http://camel.465427.n5.nabble.com/Is-there-a-tools-to-convert-java-dsl-to-xml-tp5768015p5768088.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Is there a tools to convert java dsl to xml ?

2015-06-12 Thread Tim Dudgeon
creation took " + (t4 - t3)); // shutdown sleep(5000) camelContext.stop() On 09/06/2015 16:32, Claus Ibsen wrote: Hi At runtime you can output any Camel route as xml, there is api on camel context or jmx api to do so. This is what tooling such as the camel commands / hawtio etc uses to