As of Message Transformation (transform xml format to text msg), I may have multiple msg's. How to integrate Transformation with Splitter?
Please help...
As of Message Transformation (transform xml format to text msg), I may have multiple msg's. How to integrate Transformation with Splitter?
Please help...
Well, you can of course create a TransformingSplitter, but you can still look at this as two different concerns and see it as two steps in the flow:
1st step: Split the message on several messages
2nd step: Transform each and every message
Oleg Zhurakousky
Spring Integration team
http://twitter.com/z_oleg
http://blog.springsource.com/author/ozhurakousky/
A common way to do this is with our <xpath-splitter> and <xpath-transformer> back-to-back as Oleg mentioned. You could add them to a <chain> if you prefer, but the splitting and transforming are separate responsibilities.
Mark Fisher
Spring Integration Lead
SpringSource, a division of VMware
http://www.springsource.com
http://www.springsource.org/spring-integration
http://blog.springsource.com/main/author/markf
Thank you for your reply...
The problem is , I will know if message needs to be split when I transform xml file to text/SWIFT format msg.
question:
In transformation logic, can I add the new msg to the vector and store this vector in original msg header, and process this vector in custom splliter bean???
thank you for your help