Hello, I am trying to make a route which insert a message in an activeMq from an httprequest in some case. In other case, Camel is just an HTTP Bridge
My route : <choice> <when> <simple>${bodyAs(String)} contains 'async=true'</simple> <inOnly uri="activemq:queue:YYY" /> </when> <otherwise> <to uri="http4://XXX?bridgeEndpoint=true&throwExceptionOnFailure=false" /> </otherwise> </choice> My problem is when activemq component is called, the response is an HTTP Response with a 200 status code and the body of my original request I would like to rewrite the body of this request to write a message like "everything is fine" but I don't know How to do ... Moreover i would Like to write the body response in the format expected (JSON, XML, TEXT,...) Anyone can help me please ? Thank you! -- View this message in context: http://camel.465427.n5.nabble.com/Request-Reply-tp5728478.html Sent from the Camel - Users mailing list archive at Nabble.com.