Show Table of Contents
11.8. Defining Inline Rules for Content-Based Routing with Regex
- Open the file
jboss-esb.xmland set the cbrAlias property toRegex. - Define the routing rules in the
route-toconfigurations. (These are found in the container destinations property.)<action class="org.jboss.soa.esb.actions.ContentBasedRouter" name="ContentBasedRouter"> <property name="cbrAlias" value="Regex"/> <property name="destinations"> <route-to service-category="BlueTeam" service-name="GoBlue" expression="#*111#*" /> <route-to service-category="RedTeam" service-name="GoRed" expression="#*222#*" /> <route-to service-category="GreenTeam" service-name="GoGreen" expression="#*333#*" /> </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.