Ce contenu n'est pas disponible dans la langue sélectionnée.
11.9. Routing Split Messages Example
The following is a quick example, showing the configuration for routing split messages (this time order-item fragments) to a JMS destination for processing:
<?xml version="1.0"?> <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:frag="http://www.milyn.org/xsd/smooks/fragment-routing-1.2.xsd" xmlns:jms="http://www.milyn.org/xsd/smooks/jms-routing-1.2.xsd"> <!-- Create the split messages for the order items... --> <frag:serialize fragment="order-items/order-item" bindTo="orderItem" /> <!-- Route each order items split mesage to the orderItem JMS processing queue... --> <jms:router routeOnElement="order-items/order-item" beanId="orderItem" destination="orderItemProcessingQueue" /> </smooks-resource-list>