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
camelContext
element, enter thebean
elements needed by your route.Tip Use the
id
attribute to identify the bean and not thename
attribute.Warning Do not edit the contents of the
camelContext
element. Fuse IDE overwrites thecamelContext
element 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.