Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
Chapter 1. Using the Fuse Tooling Resource Files
Abstract
Experienced users may want to focus only on the tutorials that demonstrate the tooling's new features. To do so, you need to download and install the requisite resource files. The prefabricated message files are used by all tutorials, but the prefabricated Camel Context files are specific to particular tutorials. With the exception of Chapter 2, To Create a New Route and Chapter 8, To Test a Route with JUnit, using these prefabricated resource files enables you to complete most tutorials in any order. Without them, you must complete each tutorial sequentially, as the code generated by one tutorial is the starting point for the next tutorial.
Prerequisites 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You must complete Chapter 2, To Create a New Route, to create the project, the new routing context, and the folder that will hold the test messages. The code generated by this tutorial is used by Chapter 3, To Run a Route and by Chapter 4, To Add a Content-Based Router.
You must successfully complete Chapter 8, To Test a Route with JUnit to generate a valid JUnit test case before you can successfully complete Chapter 9, To Publish a Fuse Project to Red Hat JBoss Fuse.
Six prefabricated message files named
message1.xml, message2.xml,..., message6.xml are used in all of the tutorials. These files are provided in a downloadable Messages.zip file. Follow the instructions for downloading and installing the messages in the section called “Creating test messages”.
Two prefabricated Camel Context files named
camelContext5.xml, and camelContext6.xml are used in one or more of the tutorials. These files are provided in a downloadable .zip file.
- Click here to download the
camelContexts.zipfile. - Unzip the
camelContexts.zipfile in a convenient location external to the CBRroute project's workspace. - Delete the existing
camelContext.xmlfile from theCBRroute/src/main/resources/OSGI-INF/blueprint/folder. - Install the
camelContext#.xmlfile that corresponds to the tutorial that you want to complete in the vacatedCBRroute/src/main/resources/OSGI-INF/blueprint/folder.Expand Use prefabricated Camel Context file: To complete tutorials: camelContext5.xmlTo Add Another Route to the CBR Routing Context camelContext6.xmlTo Debug a Routing ContextTo Trace a Message Through a RouteTo Test a Route with JUnit - Rename the
camelContext#.xmlfilecamelContext.xml. - In the Red Hat JBoss Fuse: Tooling Tutorials guide, follow the instructions for completing the target tutorial.