Hello Marchin,

U suspect that you need to put the setId() section of the DSL immediately after 
the very first from element.

from().setId("RouteName")....


Jaco van Tonder
Development & Integration: Software Engineer
ubank

A Sanhill Park, 1 Eglin Road, Sunninghill, Johannesburg, 2157
C +27 83 417 5424
T +27 11 518 5166
F  0866 754 9526
W http://www.ubank.co.za/


________________________________________
From: marcin [mtros...@gmail.com]
Sent: 23 February 2011 02:18 PM
To: users@camel.apache.org
Subject: route's name in jconsole

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?

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.

To view the ubank e-mail disclaimer visit:

http://www.ubank.co.za/disclaimer/disclaimer.html

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#####################################################################################

Reply via email to