Apache Camel stores routes in an XML file containing a
camelContext
element. Fuse IDE includes a
wizard that simplifies adding a Apache Camel context file to your project.
To add a Apache Camel context file to your project:
Select any item in your routing project from the Project Explorer.
Open the context menu.
Select
| .The Camel XML File wizard opens.
Tip If the New wizard filter. Camel XML File is under Fuse IDE.
option is not in the menu, you can find it by selecting | to open theEnter the location for the new context file in the Container field.
Tip The
button opens the Eclipse project explorer dialog.Note If you are using Spring, the new file should be placed in
.projectName
/src/main/resources/META-INF/spring/Enter a name for the new context file.
Select the framework the routes will use:
Spring—useful for routes that are deployed in Spring containers, standalone, or non-OSGi containers
OSGi Blueprint—useful for routes that are deployed in OSGi containers
Click
.The new context file is added to the project and opened in the Fuse IDE route editor.