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

Rest Component custom routeId is not accessible in processor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.23.1
    • Fix Version/s: 3.0.0, 2.23.4, 2.24.2, 2.25.0, 3.0.0.RC1
    • Component/s: came-core, rest
    • Labels:
      None
    • Environment:

      Apache camel 2.23.x,Tomcat 9, JDK 8

    • Estimated Complexity:
      Unknown

      Description

      Rest component route id set in routebuilder is not accessible in processor. Below is the example

      RouteBuilder:

      rest("/app").get("/test").id("REST-TEST").to("direct:test").endRest();

      from("direct:test").routeId("TEST").id("TEST").process("TestProcessor");

      or

      rest("/app").get("/test").route().routeId("TEST").id("REST-TEST")

      Processor:

      String routeId = exchange.getFromRouteId();{{}}

      routeId is always random id in case of apache camel 2.23.x but works in 2.22.x versions.

       

        Attachments

        1. Camel13424Test.java
          4 kB
          Jan Bednar

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Fang
                Reporter:
                mahesgov Maheswara Prasanna Govindasamy
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: