5.6. ftl:bindTo Example
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jms="http://www.milyn.org/xsd/smooks/jms-routing-1.2.xsd" xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd"> <jms:router routeOnElement="order-item" beanId="orderItem_xml" destination="queue.orderItems" /> <ftl:freemarker applyOnElement="order-item"> <ftl:template>/orderitem-split.ftl</ftl:template> <ftl:use> <!-- Bind the templating result into the bean context, from where it can be accessed by the JMSRouter (configured above). --> <ftl:bindTo id="orderItem_xml"/> </ftl:use> </ftl:freemarker> </smooks-resource-list>