diff --git a/spring-integration-reference/src/samples.xml b/spring-integration-reference/src/samples.xml index cd3239d68d..94af06abbc 100644 --- a/spring-integration-reference/src/samples.xml +++ b/spring-integration-reference/src/samples.xml @@ -228,4 +228,54 @@ directory: 'org.springframework.integration.samples-sources-1.0.0.RC2.jar'. + + + +
+ The xml messaging sample + + The xml messaging sample in org.springframework.integration.samples.xml illustrates how to use + some of the provided components which deal with xml payloads. The sample uses the idea of processing an order for books + represented as xml. + + + First the order is split into a number of messages, each one representing a single order item using + the XPath splitter component. + + + +]]> + + + A service activator is then used to pass the message into a stock checker POJO. The order item document is enriched with information + from the stock checker about order item stock level. This enriched order item message is then used to route the message. In the + case where the order item is in stock the message is routed to the warehouse. The XPath router makes use of a + MapBasedChannelResolver which maps the XPath evaluation result to a channel reference. + + + + + + + + + + + + +]]> + + + Where the order item is not in stock the message is transformed using + xslt into a format suitable for sending to the supplier. + +]]> + +
+ + \ No newline at end of file