Skip to content

Instantly share code, notes, and snippets.

@edgars
Created January 7, 2010 15:29
Show Gist options
  • Select an option

  • Save edgars/271298 to your computer and use it in GitHub Desktop.

Select an option

Save edgars/271298 to your computer and use it in GitHub Desktop.
<!-- Use the SAX filter so we can process huge messages... -->
<params>
<param name="stream.filter.type">SAX</param>
</params>
<!-- Capture data from the incoming message into DOM models. These are then avaiable to templating etc... -->
<resource-config selector="Order,OrderLines">
<resource>org.milyn.delivery.DomModelCreator</resource>
</resource-config>
<!-- For each "OrderLines" fragment, apply a template to the captured DOM models. Bind the templating result
into the bean context under a beanId of "orderLinesFrag" ... -->
<ftl:freemarker applyOnElement="OrderLines">
<ftl:template>/orderLinesFrag.ftl</ftl:template>
<ftl:use>
<ftl:bindTo id="orderLinesFrag" />
</ftl:use>
</ftl:freemarker>
<!-- Route the "orderLinesFrag" bean to the ReceiverService... -->
<esbr:routeBean beanIdRef="orderLinesFrag" toServiceCategory="FirstServiceESB" toServiceName="ReceiverService" routeOnElement="OrderLines" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment