Red Hat Training

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

11.8. Defining Inline Rules for Content-Based Routing with Regex

  1. Open the file jboss-esb.xml and set the cbrAlias property to Regex.
  2. Define the routing rules in the route-to configurations. (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#*" />