Now you have gotten acquainted with the basic functionality of Camel we can dive a bit deeper.
Application Integration problems are many and varied. Gregor Hohpe and Bobby Woolf noticed that many of these problems and their solutions are quite similar. They cataloged them in their book Enterprise Integration Patterns (EIP). Many developers have used more of these EIP’s without even knowing of their existence. If you do know of the EIP’s then you will recognize what is happening here.
In this exercise we will try to implement the Message Translator EIP Translating and transforming messages is one of the things we do a lot as programmers. From Java objects to XML to Json and back are just some of the possible translations we do almost daily.
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jsonpath</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-csv</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jaxb</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
<version>2.8.9</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.8.9</version>
</dependency>