You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Christian Mueller (JIRA)" <ji...@apache.org> on 2010/08/29 21:43:40 UTC

[jira] Created: (CAMEL-3087) the route name exposed in JMX uses not the route id in some situations

the route name exposed in JMX uses not the route id in some situations
----------------------------------------------------------------------

                 Key: CAMEL-3087
                 URL: https://issues.apache.org/activemq/browse/CAMEL-3087
             Project: Apache Camel
          Issue Type: Bug
          Components: jmx
    Affects Versions: 2.2.0
         Environment: apache-servicemix-4.2.0-fuse-02-00 which uses camel-2.2.0-fuse-02-00
            Reporter: Christian Mueller


All of our routes are defined in the following way:

{code:java}
from("direct:start").id(MyRoute.class.getName() + ".main")
...
.to("mock:result");
{code}

but in some situations, the route name exposed in JMX is "routeX" instead of "com.company.MyRoute.main"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3087) the route name exposed in JMX uses not the route id in some situations

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61497#action_61497 ] 

Claus Ibsen commented on CAMEL-3087:
------------------------------------

No problem.

Yeah we had issues in the past in the Java DSL to assign id to the routes, because {{id}} will clash with setting id on each of the processors in the route. Hence why we created {{routeId}} to be used for setting the route id. And therefore we don't have clashes/issues anymore.

> the route name exposed in JMX uses not the route id in some situations
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3087
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3087
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: jmx
>    Affects Versions: 2.2.0
>         Environment: apache-servicemix-4.2.0-fuse-02-00 which uses camel-2.2.0-fuse-02-00
>            Reporter: Christian Mueller
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> All of our routes are defined in the following way:
> {code:java}
> from("direct:start").id(MyRoute.class.getName() + ".main")
> ...
> .to("mock:result");
> {code}
> but in some situations, the route name exposed in JMX is "routeX" instead of "com.company.MyRoute.main"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-3087) the route name exposed in JMX uses not the route id in some situations

Posted by "Christian Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61496#action_61496 ] 

Christian Mueller commented on CAMEL-3087:
------------------------------------------

Hello Claus!

Thank you for the quick answer and sorry for the incorrect issue.

Cheers,
Christian

> the route name exposed in JMX uses not the route id in some situations
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3087
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3087
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: jmx
>    Affects Versions: 2.2.0
>         Environment: apache-servicemix-4.2.0-fuse-02-00 which uses camel-2.2.0-fuse-02-00
>            Reporter: Christian Mueller
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> All of our routes are defined in the following way:
> {code:java}
> from("direct:start").id(MyRoute.class.getName() + ".main")
> ...
> .to("mock:result");
> {code}
> but in some situations, the route name exposed in JMX is "routeX" instead of "com.company.MyRoute.main"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-3087) the route name exposed in JMX uses not the route id in some situations

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3087.
--------------------------------

         Assignee: Claus Ibsen
    Fix Version/s: 2.5.0
       Resolution: Working as Designed

You should use {{routeId}} to assign the id of the route

> the route name exposed in JMX uses not the route id in some situations
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-3087
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-3087
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: jmx
>    Affects Versions: 2.2.0
>         Environment: apache-servicemix-4.2.0-fuse-02-00 which uses camel-2.2.0-fuse-02-00
>            Reporter: Christian Mueller
>            Assignee: Claus Ibsen
>             Fix For: 2.5.0
>
>
> All of our routes are defined in the following way:
> {code:java}
> from("direct:start").id(MyRoute.class.getName() + ".main")
> ...
> .to("mock:result");
> {code}
> but in some situations, the route name exposed in JMX is "routeX" instead of "com.company.MyRoute.main"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.