I have a file poller endpoint which sends the polled xml files to a JMS queue. Now I need to validate the xml files with a schema before sending it to the JMS queue. For that purpose , I used servicemix-validation JBI component. If I set the targetService attribute pointing to the validation component, I cannot send the file to JMS queue as the validation component does not have a targetService attribute.
What should I do in the above scenario ?
Thanks in advance for the help.
Edited by: mitul1411 on Jun 8, 2010 9:44 AM
If you use an InOnly exchange, which looks like your use case, you need to use an EIP Pipeline (see http://servicemix.apache.org/servicemix-eip.html#servicemix-eip-Pipeline) to bridge the two InOnly MEPs with the InOut MEP that is needed by the validation endpoint.