Show Table of Contents
11.3. Defining Inline Rules for Content-Based Routing with XPath
Procedure 11.1. Task
- Open
jboss-esb.xmland set the cbrAlias property toXPath. - Define the routing rules in the route-to configurations (found in the container destinations property) as shown:
<action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter"> <property name="cbrAlias" value="XPath"/> <property name="destinations"> <route-to service-category="BlueTeam" service-name="GoBlue" expression="/Order[@statusCode='0']" /> <route-to service-category="RedTeam" service-name="GoRed" expression="/Order[@statusCode='1']" /> <route-to service-category="GreenTeam" service-name="GoGreen" expression="/Order[@statusCode='2']" /> </property> </action>

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.