Ce contenu n'est pas disponible dans la langue sélectionnée.
7.9. Adding beans and configuration
Overview Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
Many routing patterns rely on references to Java objects (beans) for configuration or for implementation details. You add the beans into the routing context file using the route editor's Source tab.
Procedure Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
To add beans to your routing context file:
- Open your routing context file in the route editor.
- Click the Source tab at the bottom of the route editor's canvas to switch to Source view, so you can edit the XML that defines the route.
- Enter the
beanelements needed by your route before thecamelContextelement.NoteUse theidattribute to identify the bean, not thenameattribute.ImportantDo not edit the contents of thecamelContextelement. overwrites thecamelContextelement when changes are made to the route diagram in Design view. - Save your changes by selecting
on the menu bar. - Click the Design tab at the bottom of the route editor's canvas to return to Design view and the route diagram.
Related topics Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
| Chapter 9, The Source View |
| Apache Camel Development Guide, Part IV Programming EIP Components |