Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5066

JMX statistics problem with intercept()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.1
    • 2.9.2, 2.10.0
    • camel-core, jmx
    • None
    • Unknown

    Description

      Here is the test class:

      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();
          }
      }
      
      

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            salever XiaopengLi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment