package com.example.switchyard.stringtemplate;
import org.apache.camel.builder.RouteBuilder;
public class CamelServiceRoute2 extends RouteBuilder {
/**
* The Camel route is configured via this method. The from endpoint is required to be a SwitchYard service.
*/
public void configure() {
from("switchyard://Log")
.log("Before template: ${body}")
.to("string-template:templates/message")
.log("After template: ${body}")
.to("switchyard://MyComponentReference");
}
}