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.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
A.12. XPath Splitter
Overview Link kopierenLink in die Zwischenablage kopiert!
Figure A.8. XPath Splitter Pattern
Forwarding NMR attachments and properties Link kopierenLink in die Zwischenablage kopiert!
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 Link kopierenLink in die Zwischenablage kopiert!
/*/*
, 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 Link kopierenLink in die Zwischenablage kopiert!
Example A.26. Apache Camel XPath Splitter Using XML
Equivalent Apache Camel Java DSL route Link kopierenLink in die Zwischenablage kopiert!
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");