camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Thullner" <>
Subject XPath splitter again
Date Fri, 28 Dec 2007 13:16:28 GMT
I now implemented an XPathSplitter but facing some strange problem. I am
sending a Jms TextMessage that contains an XML Document as text. The xml is
made with help of the ecs library.
When I use Camel to take the message and route it to the receiver, the
receiver also receives a TextMessage and can print out the text. I now want
to split the message up into more messages with xpath. My expression is
XPathBuilder xPathBuilder=new XPathBuilder("//trainSchedule/stops/station");
When I now start the consumer, receiver and camelContext, my receiver does
not receive a TextMessage, anymore but an ObjectMessage. The object in the
message is an object of the class
What happened here to my TextMessage? Can it be a problem with my xpath or
do I need some additional statements so that the receiver get a TextMessage
again? I think my xpath expression is correct, as the receiver receives the
correct amount of messages it should receive. 
Thanks for any help

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message