Hi, I would like to create a kind of proxy which receives the requests, sends it to a seda process and waits for the response. How can I send custom error code back? This doesn't work with camel 2.4, I always get 200 OK when file shows up in dir within 30 seconds, if not then I get 500 Server Error not 520.
How can I pass the request (body) to seda process? I would like to push HTTP request(xml) to a ActiveMQ queue and based on the returned file content (xpath evaluation) return a code and body to jetty. (200,500 whatever) <route id="seda"> <from uri="jetty:http://localhost:8088/sedatest"/> <to uri="seda:input"/> </route> <route id="seda2"> <from uri="seda:input"/> <setHeader headerName="HttpProducer.HTTP_RESPONSE_CODE"><constant>520</constant></setHeader> <pollEnrich uri="file:///tmp/seda" timeout="50000"/> </route> Thanks, Levente