Library Link To Toggle Frames Print Feedback

The Root Element

The root element of a router's configuration file is the mule-configuration element.

Attributes

The mule-configuration element has two attributes:

  • id

    The id attribute is a string, without spaces, that is used to identify the configuration.

  • version

    The version attribute must be set to 1.0.

Children

The mule-configuration element has the following children:

  • description

    The description element is a string that describes the configuration.

  • mule-environment-properties

    The mule-environment-properties element is an empty element that has a single attribute called clientMode. The clientMode attribute must be set to true.

  • endpoint-identifiers

    The endpoint-identifiers element is used to specify processing components used in chained routes. For more information see Chapter 7, Creating Chained Routes.

  • transformers

    The transformers element is used to specify any message transformers that are to be applied to messages as they are passed into and out of the router core. For more information see Adding Transformers.

  • model

    The model element contains the elements that configure a deployed router. For a detailed discussion about the contents of the model element see Configuring the Routes to be Implemented.

Example

Example 5.2, “Configuration Root Element” shows a router configuration fragment.

Example 5.2. Configuration Root Element

<mule-configuration id="RouterConfig" version="1.0">
  <description>Fragment of a router configuration file.</description>
  <mule-environment-properties clientMode="true" />
  <model name="Sample">
    ...
  </model>
</mule-configuration>