File endpoint for ProducerTemplate is not working SwitchYard Application
Issue
- I wish to split a file on some condition , the two results are to be sent to two different outbounds , I am using ProducerTemplate for doing so , This works fine when I write to JMS endpoint , but does not work for file endpoints :
ProducerTemplate producer = exchange.getContext().createProducerTemplate();
// Not Working
producer.sendBodyAndHeaders("file://work/cbr/input",matched.toString(),headers);
// Working
producer.sendBodyAndHeaders("jms:myqueue",unmatched.toString(), headers);
- Also, does not produce any error but does not write the file to the endpoint destination.
- It is working fine in a simple camel project, but not in switchyard application.
Environment
- RedHat Jboss Fuse
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.