Red Hat Training

A Red Hat training course is available for Red Hat Fuse

13.3. Configuration Modularization Replacement Token Example

In this example, replacement tokens have been injected. Th injection points are specified using @tokenname@:
<!-- Top level configuration... -->
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd">
 
    <import file="bindings/order-binding.xml">
        <param name="orderRootElement">order</param>
    </import>
 
</smooks-resource-list>
 
<!-- Imported parameterized bindings/order-binding.xml configuration... -->
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.4.xsd">
 
    <jb:bean beanId="order" class="org.acme.Order" createOnElement="@orderRootElement@">
        .....
    </jb:bean>
 
</smooks-resource-list>