Dec 27th, 2010, 09:10 PM
How to send out 2 different messages to 2 different channels from a Service Activator
I am trying to implement the next flow:
I read a file from a folder, create a ws service request based on it and process the ws response. Additionally, I would like to archive the original file if the WebService was successful. My ServiceActivatorWebService returns a message with the XML response, so I am loosing the message with the original file in order for the File-outbound-Adapter to move the file to the archive folder.
In other words, I would like to add the next flow (if the ws request was successful):
I cannot come up with a solution that does not involve changing the ServiceActivatorWebService business class to programatically send the original message to fileChannel2.