Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

11.7. Defining XML Namespace Prefix-to-URI Mappings

  • Define XML namespace prefix-to-URI mappings as shown below. (This applies to both external and in-line rule definitions.)
    <action class="org.jboss.soa.esb.actions.ContentBasedRouter" 
    name="ContentBasedRouter">
        <property name="cbrAlias" value="XPath"/>
        <property name="namespaces">
            <route-to prefix="ord" uri="http://www.acne.com/order" />
        </property>
        <property name="destinations">
            <route-to service-category="BlueTeam"  
            service-name="GoBlue"  expression="/ord:Order[@statusCode='0']" />
            <route-to service-category="RedTeam"   
            service-name="GoRed"   expression="/ord:Order[@statusCode='1']" />
            <route-to service-category="GreenTeam" 
            service-name="GoGreen" expression="/ord:Order[@statusCode='2']" />
        </property>
    </action>