On Wed, Feb 23, 2011 at 1:18 PM, marcin <mtros...@gmail.com> wrote:
>
> Hi,
>
> I would like to monitor my camel's routes using jconsole.
>
> When I create route in xml
>
> <camel:route id="article-processing-route">
> ...
> </camel:route>
>
> in jconsole I can see route's name "article-processing-route".
>
> But when I create route in dsl
>
> from("activemq:queue:test").process(processor).setId("article-processing-event");
>
> in jconsole I can see route's name like "route88".
>
> How can I set my route to see custom route's name in jconsole?
>

Use .routeId("myRouteName") in Java DSL to set a route id.

> Cheers,
> Marcin
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/route-s-name-in-jconsole-tp3396942p3396942.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to