Normalizer - 6.3

Talend ESB Mediation Developer Guide

Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Design and Development
Talend ESB

Camel supports the Normalizer from the EIP patterns by using a Message Router in front of a number of Message Translator instances.

The below example shows a Message Normalizer that converts two types of XML messages into a common format. Messages in this common format are then filtered.

Using the Fluent Builders

// we need to normalize two types of incoming messages

In this case we're using a Java bean as the normalizer. The class looks like this

public class MyNormalizer {
    public void employeeToPerson(Exchange exchange, 
        @XPath("/employee/name/text()") String name) {

    public void customerToPerson(Exchange exchange,
        @XPath("/customer/@name") String name) {
    private String createPerson(String name) {
        return "<person name=\"" + name + "\"/>";

Using the Spring XML Extensions

The same example in the Spring DSL

<camelContext xmlns="">
      <from uri="direct:start"/>
            <to uri="bean:normalizer?method=employeeToPerson"/>
            <to uri="bean:normalizer?method=customerToPerson"/>
      <to uri="mock:result"/>

<bean id="normalizer" class="org.apache.camel.processor.MyNormalizer"/>