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

Custom extensions to Camel's XML configuration

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.11.0
    • Fix Version/s: Future, 3.0.0
    • Component/s: camel-core
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      Allow custom elements to be defined and used in Camel's XML configuration.

      The use case I have is that we have a fair number of Processor's that take various options and we dynamically load and unload routes from external XML files (not in any spring contexts).

      Currently we do this by reimplementing Camel's loadRoutesDefinition() method, and supplying additional packages when creating the JAXBContext. It would be good is there were an officially supported mechanism to do this.

      We place our custom *Definitions in separate namespaces.

      I imagine it wouldn't be too hard to add support to Camel to look for a specific META-INF/services file and add the additional packages contained within to the JAXBContext, when it is created.

      I guess this also means the structure of *Definition classes would need to be documented to allow others to take advantage of them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aaronjwhiteside Aaron Whiteside
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: