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

camel rest and missing jmx endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • 3.6.0
    • None
    • rest
    • None
    • Unknown

    Description

      Hello,

       I’m using some camel rest routes and found something unexpected with the examples provided in https://camel.apache.org/manual/latest/rest-dsl.html

       

      rest("/say")
               .get("/hello").to("direct:hello")
               .get("/bye").consumes("application/json").to("direct:bye")
               .post("/bye").to("mock:update");
       
       from("direct:hello")
               .transform().constant("Hello World");

       

      Those routes creates 3 netty consumers visible in JMX, consuming from following endpoints:

       However, in JMX, I can see only 2 of those endpoints: 

       

      There is no endpoint for “POST” on “/bye”.

       

      Maybe it’s because it would share the same endpointBaseUri than the endpoint for “GET” on “/bye” ?

       I attached a screenshot if this helps where we can see the 3 consumers and only 2 endpoints.

       

      Regards,

      Nicolas

      Attachments

        1. Capture.PNG
          51 kB
          ncasaux
        2. Capture.PNG
          51 kB
          ncasaux

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            ncasaux ncasaux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: