Chapter 1. About the Fuse Tooling Tutorials
The Red Hat Fuse Tooling tutorials provide a hands-on introduction to using the Fuse Tooling to develop, run, test, and deploy an Apache Camel application.
Prerequisites
Before you begin, you should be familiar with the following software:
Overview of the Fuse Tooling tutorials
Here is a summary of the tutorials and what you accomplish in each one:
Chapter 2, Setting up your environment
Create a Fuse Integration project and set up the tutorial resource files (example messages and routing context files). When you create a project, it auto-creates a routing context and a preliminary route.
Define the endpoints for a simple route that retrieves messages from a folder and copies them to another folder.
View the test messages. Run the route and verify that it works by seeing that the test messages were copied from the source folder to the target folder.
Chapter 5, Adding a Content-Based Router
Add a content-based router that filters the messages and copies them to different target folders based on content in the messages.
Chapter 6, Adding another route to the routing context
Add another route that further filters the messages and copies them to different target folders based on content in the messages.
Chapter 7, Debugging a routing context
Use the Camel debugger to set breakpoints and then step through a route to examine route and message variables.
Chapter 8, Tracing a message through a route
Drop messages onto the route and track them through all route nodes.
Chapter 9, Testing a route with JUnit
Create a JUnit test case for the route and then test the route.
Chapter 10, Publishing your project to Red Hat Fuse
Walk through the process of publishing an Apache Camel project to Red Hat Fuse: define a local server, configure publishing options, start the server, publish the project, connect to the server, and verify that the project was successfully built and published.
For more details on Fuse Tooling features, see the Tooling User Guide.
About the sample application
The sample application that you build in the Fuse Tooling tutorials simulates a simple order application for zoos to order animals. Sample XML messages are provided - each XML message includes customer information (the name, city, and country of the zoo) and order information (the type and number of animals requested, and the maximum number of animals allowed).
Using the Fuse Tooling, you create a Blueprint project that takes incoming sample messages, filters them based on their content (valid versus invalid orders), and then further sorts the valid orders by the location (country) of the zoo. In the later tutorials, you use the sample application to debug a routing context, trace a message through a route, test a route with JUnit, and finally to publish a Fuse project.
About the resource files
Each tutorial builds upon the previous one. The code generated by one tutorial is the starting point for the next tutorial so that you can complete the tutorials in sequence. Alternately, after you complete the first tutorial, you can do any other tutorial out of sequence by using one of the provided context files as a starting point.
The tutorials rely on resource files provided in the Fuse-tooling-tutorials-jbds-10.3.zip
file located here. This zip file contains two folders:
- Messages
-
This folder contains six message files named
message1.xml
,message2.xml
, … ,message6.xml
. In the first tutorial, Chapter 2, Setting up your environment, you create the directory in which to store these message files and you also view their contents. You need these message files for all tutorials. - blueprintContexts
This folder contains three routing context files:
Blueprint1.xml
- This is the solution routing context resulting from completing the Chapter 3, Defining a Route tutorial. You can use it as the starting point for the following tutorials:-
Blueprint2.xml
- This is the solution context file for the Chapter 5, Adding a Content-Based Router tutorial. You can useblueprint2.xml
as the starting point for the Chapter 6, Adding another route to the routing context tutorial. Blueprint3.xml
- This is the solution context file for the Chapter 6, Adding another route to the routing context tutorial. You can useblueprint3.xml
as the starting point for these tutorials: