Created
February 27, 2009 09:28
-
-
Save p3t0r/71375 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* listen to topic queue | |
* -- on incoming message | |
* --- split message into program fragments using xpath | |
* ---- extract the id from the program | |
* ---- write a program document to the xml store | |
*/ | |
from("activemq:topic:incomingVPROGuide") | |
.splitter(vpro.xpath("//vpro:program")) | |
.setHeader(FileComponent.HEADER_FILE_NAME, vpro.xpath("//vpro:program/@id", String.class)) | |
.process(sanitize(FileComponent.HEADER_FILE_NAME)) | |
.to("xmldb:/programs"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment