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 routing context files are specific to particular tutorials. With the exception of To Create a New Route and 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.
You must complete 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 To Run a Route and by To Add a Content-Based Router.
You must successfully complete To Test a Route with JUnit to generate a valid JUnit test case before you can successfully complete To Publish a Fuse Project to Red Hat JBoss Fuse.
Click here to download the
jbdsis-tooling-tutorials-jboss-fuse-6.3.zip file. Move it to a
convenient location external to the CBRroute project's workspace, and unzip it. It
contains two directories:
Messages
Contains six prefabricated message files named
message1.xml, message2.xml,...,
message6.xml used in all of the tutorials. In To Create a New Route, you will create the directory in which to
store these message files, and also learn how to create them.
blueprintContexts
Contains two prefabricated routing context files named
blueprint5.xml, and
blueprint6.xml, which can be used in one or more of the
tutorials:
| Use prefabricated routing context file: | To complete tutorials: |
|---|---|
blueprint5.xml | To Add Another Route to the CBR Routing Context |
blueprint6.xml |
To Debug a Routing Context To Trace a Message Through a Route To Test a Route with JUnit |
To install the blueprint files: #.xml
Delete the existing blueprint.xml
file from the
CBRroute/src/main/resources/OSGI-INF/blueprint/
folder.
Copy the blueprint file
that corresponds to the tutorial that you want to complete to the vacated
#.xmlCBRroute/src/main/resources/OSGI-INF/blueprint/
folder.
Rename the
blueprint
file #.xmlblueprint.xml.
Follow the instructions for completing the target tutorial.