Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Ce contenu n'est pas disponible dans la langue sélectionnée.
A.12. XPath Splitter
Overview Copier lienLien copié sur presse-papiers!
Figure A.8. XPath Splitter Pattern
Forwarding NMR attachments and properties Copier lienLien copié sur presse-papiers!
eip:xpath-splitter
element supports a forwardAttachments
attribute and a forwardProperties
attribute, either of which can be set to true
, if you want the splitter to copy the incoming message's attachments or properties to the outgoing messages. The corresponding splitter pattern in Apache Camel does not support any such attributes. By default, the incoming message's headers are copied to each of the outgoing messages by the Apache Camel splitter.
Example ServiceMix EIP route Copier lienLien copié sur presse-papiers!
/*/*
, causes an incoming message to split at every occurrence of a nested XML element (for example, the /foo/bar
and /foo/car
elements are split into distinct messages).
Example A.25. ServiceMix EIP XPath Splitter
Equivalent Apache Camel XML route Copier lienLien copié sur presse-papiers!
Example A.26. Apache Camel XPath Splitter Using XML
Equivalent Apache Camel Java DSL route Copier lienLien copié sur presse-papiers!
Example A.27. Apache Camel XPath Splitter Using Java DSL
from("jbi:endpoint:http://progress.com/demos/test/xpathSplitter/endpoint"). splitter(xpath("/*/*")).to("jbi:service:http://test/router");
from("jbi:endpoint:http://progress.com/demos/test/xpathSplitter/endpoint").
splitter(xpath("/*/*")).to("jbi:service:http://test/router");