Many routing patterns rely on references to Java objects for configuration or implementation details. These references are to beans that represent the Java objects. You add the beans into the route file using Fuse IDE;s Source tab.
To add beans to your route file:
Open your route file into the Fuse IDE editor.
Click the Source tab at the bottom of the editor's canvas.
The route diagram will be replaced by the XML defining the route.
Before the
camelContextelement, enter thebeanelements needed by your route.![[Tip]](imagesdb/tip.gif)
Tip Use the
idattribute to identify the bean and not thenameattribute.![[Warning]](imagesdb/warning.gif)
Warning Do not edit the contents of the
camelContextelement. Fuse IDE overwrites thecamelContextelement when changes are made to the route diagram.Save your changes using |.
Click the Design tab at the bottom of the editor's canvas.
The XML source will be replaced by the route diagram.








