THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
To use a string template to formulate a response for a message
The Email Sample
In this sample we want to use StringTemplate as templating for an order confirmation email. The email template is laid out in StringTemplate as:
Code Block |
---|
Dear $headers.lastName$, $headers.firstName$
Thanks for the order of $headers.item$.
Regards Camel Riders Bookstore
|
And the java code:
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=activemq/camel/trunk/components/camel-stringtemplate/src/test/java/org/apache/camel/component/stringtemplate/StringTemplateLetterTest.java} |
Include Page | ||||
---|---|---|---|---|
|