This tutorial walks you through the process of creating a Fuse Integration project, adding a route to it, and adding two endpoints to the route. It assumes that you have already set up your workspace and that Red Hat JBoss Fuse Tooling is running inside Red Hat JBoss Developer Studio.
In this tutorial you will:
Create a route
When you start Developer Studio for the first time, it opens in the JBoss perspective:

![]() | Note |
|---|---|
You can start this tutorial in the JBoss perspective or in the Fuse Integration perspective. If you start it in the JBoss perspective, the tooling will ask to switch you to the Fuse Integration perspective at the appropriate point in the tutorial. |
To create a Fuse Integration project:
From the menu bar, select > > > > > > > > > > and click to open the New Fuse Integration Project wizard:

CBRroute.Click to open the Select a Target Runtime page:

Accept No Runtime selected for Target Runtime, and 2.18.1.redhat-000015 for Camel Version.
![]() | Note |
|---|---|
You will add the runtime later in the tutorial To Publish a Fuse Project to JBoss Fuse. |
Click to open the Advanced Project Setup page:

Click .
Fuse Tooling starts downloading from the Maven repository all of the files it needs to build the project, and then adds the new project to Project Explorer.
If you are not in the Fuse Integration perspective, the tooling asks whether you want to switch to it now:

Click to open the new CBRroute project in the
Fuse Integration perspective:

The new CBRroute project contains everything needed to create and
run routes. As shown in Figure 1, “Generated project files”, the files generated for
CBRroute include:
CBRroute/pom.xml (Maven
project file)CBRroute/src/main/resources/OSGI-INF/blueprint/blueprint.xml
(Blueprint XML file containing the routing
rules)
![]() | Note |
|---|---|
Notice that the You can safely ignore this warning or eliminate it by opening the
|
To create the route:
Drag a File component (
) from the Palette's
Components drawer to the canvas, and drop it in the
Route_route1 container node.
The File component changes to a From _from1 node
inside the Route_route1 container node.
On the canvas, select the From _from1 node.
The Properties view, located below the canvas, displays the node’s property fields for editing.
In the Properties view, click the Advanced tab:

You need to create a folder for the project’s source data and enter that folder’s name in the Directory Name field.
CBRroute/src/ to open the context menu.Select menu:[ > New > > Folder > ] to open the New Folder wizard:

CBRroute/src appears in the Enter or select the parent
folder field. Otherwise enter it manually, or select it
from the graphical representation of the project’s hierarchy.In the Folder name field, enter data, and then
click Finish.
The new data folder appears in
Project Explorer, under the src
folder:

From
_from1 node’s Advanced tab.In the Directory Name field, enter
src/data:

The path src/data is relative to the project’s directory.
On the Consumer tab, enable the Noop option by clicking its check box.
The Noop option prevents the
message#.xml files being deleted from the
src/data folder, and it enables
idempotency to ensure that each message#.xml file is
consumed only once.
Select the Details tab to open the file node’s Details page.
The tooling automatically populates the Uri field with
the Directory Name and Noop properties
you configured on the Advanced tab. It also populates the
Id field with an autogenerated ID
(_from1):

Drag another File component from the
Palette's Components drawer and
drop it in the Route_route1 container node.
The File component changes to a To _to1 node
inside the Route_route1 container node.
On the canvas, select the To _to1 node.
The Properties view, located below the canvas, displays the node’s property fields for editing.
On the Details tab, enter
file:target/messages/others in the
Uri field, and _Others in the
Id field:

![]() | Note |
|---|---|
The tooling will create the |
In the Route_route1 container, select the From
_from1 node and drag it’s connector arrow (
) over the To_Others node, then release
it:

![]() | Note |
|---|---|
The two file nodes are connected and aligned on the canvas according to the route editor’s layout direction preference setting. The choices are Right and Down (default). |
![]() | Note |
|---|---|
If you do not connect the nodes before you close the project, the tooling automatically connects them when you reopen it. |
Click the Source tab at bottom, left of the canvas to display the XML for the route. The camelContext element will look like Example 1, “XML for CBRroute”:
Example 1. XML for CBRroute
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<camelContext id="_context1" xmlns="http://camel.apache.org/schema/blueprint">
<route id="_route1">
<from id="_from1" uri="file:src/data?noop=true"/>
<to id="_Others" uri="file:target/messages/others"/>
</route>
</camelContext>
</blueprint>Before you can run your route, you need to create test messages to send through it.
CBRroute to open the context
menu.Click > > > > to open the New File wizard:

CBRroute/src/data
appears in the Enter or select the parent
folder field. Otherwise enter it manually, or
select it from the graphical representation of the
project’s hierarchy.message1.xml.Click to open the test message,
message1.xml in the Design
tab:

Click the tab at the bottom of the canvas:

In the tab, enter this text:
<?xml version="1.0" encoding="UTF-8"?>
<order>
<customer>
<name>Brooklyn Zoo</name>
<city>Brooklyn</city>
<country>USA</country>
</customer>
<orderline>
<animal>wombat</animal>
<quantity>15</quantity>
<maxAllowed>25</maxAllowed>
</orderline>
</order>![]() | Note |
|---|---|
You can safely ignore the
|
If you haven’t already done so, download the prefabricated test message files
(see Using the Fuse Tooling Resource Files for instructions). Copy
message2.xml through message6.xml
into the newly created CBRroute/src/data folder. You will
use all six test messages in the remaining Fuse Tooling tutorials.
Table 1, “Preconstructed test messages” shows the contents of each remaining prefabricated message file.
Table 1. Preconstructed test messages
| msg# | <name> | <city> | <country> | <animal> | <quantity> | <maxAllowed> |
|---|---|---|---|---|---|---|
2 | San Diego Zoo | San Diego | USA | giraffe | 3 | 2 |
3 | London Zoo | London | Great Britain | penguin | 12 | 20 |
4 | Bristol Zoo | Bristol | Great Britain | emu | 5 | 4 |
5 | Paris Zoo | Paris | France | giraffe | 2 | 2 |
6 | Hellabrunn Gardens | Munich | Germany | penguin | 18 | 20 |
After you have created and designed your route, you can run it by deploying it into your local Apache Camel runtime, as described in To Run a Route.
To learn more about using the editor, see Editing a routing context in the route editor.