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

camel-jaxb should not try to convert to BeanInvocation when routing to beans using JAXB payloads

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0, 2.7.0
    • 2.8.0
    • camel-jaxb
    • None

    Description

      When Camel uses beans in routes, the type convert system will check if the payload is a bean invocation (used by proxy and whatnot).

      The JAXB fallback converter should not support this as it will lead to unnecessary attempts to convert payloads to JAXB as part of the bean invocation. And that may lead to issue if JAXB cannot do this due no ObjectFactory and whatnot.

      So even if users are routing to beans and have a signature as follows

      public void doSomething(Exchange exchange) { 
      ...
      }
      

      The end user would not expect any type converter attempt for his JAXB payload, as the parameter type is Exchange.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: