Spring XML Extensions

The Camel Spring XML Extensions allow you use a very concise XML syntax to describe your Camel configuration when you are using spring to wire together your application.

The following is an example of what it looks like:

<camelContext errorHandlerRef="errorHandler" xmlns="http://camel.apache.org/schema/spring">
        <from uri="direct:a"/>
                <xpath>$foo = 'bar'</xpath>
                <to uri="direct:b"/>
                <xpath>$foo = 'cheese'</xpath>
                <to uri="direct:c"/>
                <to uri="direct:d"/>

For more usage examples see the Enterprise Integration Patterns.