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

Camel dont set ID for ToDefinition object, when using validate in the route

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.9.6, 2.10.4, 2.11.0
    • Fix Version/s: 2.9.7, 2.10.5, 2.11.1, 2.12.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      from(uri) 
                      .routeId(ROUTE_ID) 
                      .validate(body().isInstanceOf(SomeClass.class)) 
                      .beanRef(bean, "someMethod") 
                      .marshal(jaxbIn) 
                      .to(uri).id("meID"); 
      

      Studying Camel source (2.10.4) code i find, that method id("meID") is called on ValidateDefinition object and this return empty collection for outputs.

      http://camel.465427.n5.nabble.com/Camel-dont-set-ID-for-ToDefinition-object-td5731143.html

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              horyna Pavel Hora
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: