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

    route-to element in jboss-esb.xml

    massios

      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.

        • 1. Re: route-to element in jboss-esb.xml
          beve

          Hi Nikos,

           

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

          The 'property' element extends 'xsd:anyType' and only mandates that a name attribute be present. The value is optional and there is no constraints on the content in any way. This allows custom actions to receive configuration properties.

           

          Regards,

           

          /Daniel

          • 2. Re: route-to element in jboss-esb.xml
            massios

            Hello Daniel,

             

            I see.

             

            XML Spy 4.4 is reporting "element route-to not defined in DTD/Schema". I thought that the problem was that route-to was not declared as a type but probably the version if XML Spy I am using is too old.

             

            Nikos.