Apache Camel stores routes in an XML file that contains a camelContext element. Fuse IDE includes a wizard that simplifies adding an Apache Camel
context file to your project.
To add an Apache Camel context file to your project:
In Package Explorer, select any item in your routing project.
Right-click it to open the context menu.
Select > to open the Camel XML File wizard, as shown in Figure 6, “Camel XML File wizard”.
![]() | Tip |
|---|---|
Alternatively, you can open the wizard by selecting, from the menu bar, > > . |
In RouteContainer, accept the default location or enter another location for the new context file. The default location is the folder you selected in Step 2.
![]() | Tip |
|---|---|
You can click |
![]() | Note |
|---|---|
If you're using Spring, place the new context file in |
In File Name, enter a name for the new context file.
The file's name cannot contain spaces or special characters, and it must be unique within the JVM.
In Framework, select the framework the routes will use:
Spring—for routes that will be deployed in Spring containers, standalone, or non-OSGi containers
OSGi Blueprint—for routes that will be deployed in OSGi containers
Routes—for creating routes that you can load and add into an existing camelContext
Click .
The new context file is added to the project in Package Explorer and opened in the route editor.