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

JMX statistics problem with some components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.4
    • 2.8.5, 2.9.1, 2.10.0
    • camel-core
    • 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 {
                    from("timer:foo?period=5000").routeId("timer").loadBalance()
                           .roundRobin().id("load_balance_1").to("log:one")
                           .id("log_one").to("log:two").id("log_two").end();
       
                 }
             });
             context.start();
             Thread.sleep(500000);
             context.stop();
          }
       
      }
      

      The MBean [org.apache.camel/processors/XXX/load_balancer_1/Attributes/ExchangesTotal] property has no value, therefore no statistics information can be accessed. The same problem exists in Intercept,Log.

      Attachments

        1. Camel-bug.jpg
          109 kB
          XiaopengLi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: