Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

Customizing the XML

The Xml Configuration is defined by JAXB POJOs in the org.apache.camel.model.* package and its sub packages.

  • If you are adding a new class you must edit the jaxb.index file to add the class name! (One day we could hopefully have these autogenerated by a maven plugin)
  • If you add a new package, you must
    • add a jaxb.index file in src/main/resources/...
    • add a package-info.java file like the other model packages
    • edit the JAXB_PACKAGES string in the CamelNamespaceHandler class in camel-spring
  • whenever you add anything to the XML - add some unit tests!
    • if you add a new model package and want add a unit test in XMLPaserTest, you also need to add your package into the jaxb context in XmlTestSupport
© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram