In some situations, our deployment may consist of different systems that are using different data formats in their messages for communication. Each application would have its own data format and therefore we would need to translate messages into formats that are supported.
In this scenario, we would use a message translator as a filter for the translation process and we could incorporate multiple translation processes chained together.
Java DSL Example
Code Block |
---|
public class OrderTransformProcessor
implements Processor {
public void process(Exchange exchange)
throws Exception {
// do message translation here
}
}
from("direct:transformOrder")
.process(new OrderTransformProcessor());
|