### camel-mvel

The http://camel.apache.org/mvel-component.html[mvel,window=_blank]
component allows you to process a message using an https://github.com/mvel/mvel[MVEL,window=_blank] template.

A simple template

 Hello @{request.body}

can be used like this

[source,java,options="nowrap"]
CamelContext camelctx = new DefaultCamelContext();
camelctx.addRoutes(new RouteBuilder() {
    @Override
    public void configure() throws Exception {
        from("direct:start").to("mvel:template.mvel");
    }
});
camelctx.start();
ProducerTemplate producer = camelctx.createProducerTemplate();
String result = producer.requestBody("direct:start", "Kermit", String.class);
Assert.assertEquals("Hello Kermit", result);

