2 Replies Latest reply on Jan 11, 2010 6:05 AM by Nikos Massios

    route-to element in jboss-esb.xml

    Nikos Massios Novice

      An observation I made today.

       

      The content based router (see page 28) of the services guide

       

      <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>

       

      uses the route-to element inside a property element.

       

      According to the XSDs in jbossesb-4.7\xml (for example jbossesb-1.2.0.xsd) the route-to tag is not allowed threre (or anywhere else).

       

      Nikos.