On 30 Aug 2005, at 16:21, Schweter, Ryan wrote:

I haven’t been able to find any documentation on advanced message routing techniques such as message correlation, re-sequencing and message splitting.  How does ServiceMix offer this type of functionality?

Correlation and re-sequencing is currently implemented via BPEL

Message splitting is currently implemented in the XPath Router

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:jbi="xalan://org.servicemix.components.xslt.XalanExtension"
                extension-element-prefixes="jbi"

                xmlns:foo="http://servicemix.org/cheese/"
                version="1.0">

  <xsl:template match="/*">

    <!-- lets invoke a number of services one after the other -->
    <jbi:invoke service="foo:service1">
      <xsl:value-of select="/foo/cheese"/>
    </jbi:invoke>

    <jbi:invoke service="service2">
      <xsl:value-of select="/foo/beer"/>
    </jbi:invoke>

    <!-- 1-many split -->
    <xsl:for-each select="/foo/lineitem">
      <jbi:invoke service="service2">
        <xsl:value-of select="."/>
      </jbi:invoke>
    </xsl:for-each>

  </xsl:template>

</xsl:stylesheet>


Though its pretty easy to implement as your own JBI component in Java code or to use scripting


Reply via email to