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

camel-jaxb: partClass and partNamespace dynamically set by header

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.20.0
    • Component/s: camel-jaxb
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The Camel JAXB Data Format allows to specify a partClass and partNamespace on the data format configuration.

      If you have many cases of partial marshalling or unmarshalling, you're forced to configure as many data formats as part classes you'll ever need to handle.

      Aside from being inconvenient, it makes route initialisation pretty inefficient because a JAXBContext is created per data format, performing a full scan and reflection of the package each time. Slows down route startup considerably.

      Enhance the Camel JAXB Data Format so that it's capable of doing partial unmarshalling at runtime based on message headers.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                onders Önder Sezgin
                Reporter:
                raulvk Raúl Kripalani
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: