The message flow and its resources are
stored in a file system or in a shared repository. If you are using a file
system, this can be the local drive or a shared drive. If you store files
in a repository, you can use any of the available repositories that are supported
by Eclipse, for example CVS.
Use this process to create a complete message
flow that you can deploy, or a subflow that provides a subset of function
(for example, a reusable error processing routine) that you cannot deploy
on its own.
To create a message flow and other resource
files that you need to start developing applications, you can use a Quick
Start wizard.
To create only a message flow, perform
the following actions:
- Switch to the Broker Application Development perspective.
- Check to see whether you have already created the message
flow project in which you want to create the message flow. If
the message flow project does not already exist, you can either create it
now (before following the steps in this topic to create the message flow)
or you can create the message flow project as an optional step in creating
the message flow (see step 4). The project can be empty, or can have message
flows defined in it.
- Click or right-click any resource
in the Broker Development view and click .
You
can also press Ctrl+N. This displays a dialog that allows you to select the
wizard to create a new object. Click Message Brokers in the left view. The
right view displays a list of objects that you can create for WebSphere Message Broker.
Click Message Flow in the right view, then click Next.
The New Message Flow wizard displays.
- Identify the project in which you want to
define the message flow. If you have a resource selected in the
Broker Development view, the name of the corresponding project is displayed
in the Message Flow Project field.
If you do not
have a resource selected, the first field is blank. If the message flow project
for this message flow has already been created, you can either type the name
of the project into the field or click the down-arrow and select the appropriate
project from the list displayed.
If the message flow project has not
yet been created, select New. The New Message Flow
Project wizard starts, and you can use it to create the message flow project
for your new message flow. When you have finished creating the new message
flow project, the New Message Flow Project wizard closes, and the name of
your new message flow project is displayed in the Message Flow
Project field of the New Message Flow window.
If your entry
is not a valid project name, the window displays a red cross and the error
message The specified project does not exist .
- In the Message flow Name field, enter
the name of the new message flow. You can use any valid character
for the name, but it is helpful to choose a name that reflects its function,
for example OrderProcessing.
- If you want the message flow to be created in the default
broker schema, ensure that Use default in the Flow
organization section has been selected. When you create
a message flow project, a default schema is created within it, and this default
value is assumed unless you deselect it.
If you want to use a different
broker schema, deselect Use default. You can now either
enter the name of the broker schema into the Schema field,
or use the Browse button to view and select from any
of the broker schemas in the message flow project.
You can create and
use different schemas within a single project to organize message flow resources,
and to provide the scope of resource names to ensure uniqueness.
- Click Finish.