You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Assigned) (JIRA)" <ji...@apache.org> on 2012/03/09 10:48:06 UTC

[jira] [Assigned] (CAMEL-5066) JMX statistics problem with intercept()

     [ https://issues.apache.org/jira/browse/CAMEL-5066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-5066:
----------------------------------

    Assignee: Claus Ibsen
    
> JMX statistics problem with intercept()
> ---------------------------------------
>
>                 Key: CAMEL-5066
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5066
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.1
>            Reporter: XiaopengLi
>            Assignee: Claus Ibsen
>         Attachments: intercept-statistics-bug.jpg
>
>
> Here is the test class:
> {noformat}
> public class TestStatistics {
>  
>     public static void main(String[] args) throws Exception {
>        DefaultCamelContext context = new DefaultCamelContext();
>        context.addRoutes(new RouteBuilder() {
>  
>            @Override
>            public void configure() throws Exception {
>               	intercept().to("log:intercept");
> 		from("timer://myTimer?period=2000").setBody()
> 				.simple("Current time is ${header.firedTime}").to("log:out");
>  
>            }
>        });
>        context.start();
>        Thread.sleep(500000);
>        context.stop();
>     }
> }
> {noformat}
> The MBean [org.apache.camel/processors/XXX/to2/Attributes/ExchangesTotal] property has no value, therefore no statistics information can be accessed.
> I used 2.9.2-SNAPSHOT.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira