thanks souciance. Here is my code , my question is how do I rteurn a custom
message when the request is successful. Currently for some reason, my code
returns the transformed payload along with 200 ok, I want to send a custom
message something like { statuscode = 200, message="success"} as a response
public void configure() throws Exception {
// errorHandler(deadLetterChannel("jms:queue:dead"));
handleProcessingException();
handleHttpOperationFailedException();
restConfiguration().component("netty4-http").host("0.0.0.0").port(9090).enableCORS(true)
.dataFormatProperty("prettyPrint",
"true");
rest("/ewarehouse").description("Adjustments REST
service").produces("application/json")
.consumes("application/json").post("/adjustments").to("stream:out").to("direct:adjustmentsToRMQ")
.responseMessage().code(200).message("Success").endResponseMessage();
from("direct:adjustmentsToRMQ")
.bean(new ValidateEWAdjustments())
.bean(new EWAdjustmentsBean())
.bean(new
JsonSerializerBean()).split().jsonpath("$.*").parallelProcessing()
.bean(new JsonSerializerBean())
.to("spring-amqp:camel.ew.temp?type=direct&exchangePattern=InOnly");
}
currently im returning the output from ".bean(new
EWAdjustmentsBean()).bean(new JsonSerializerBean())"
--
View this message in context:
http://camel.465427.n5.nabble.com/Java-Rest-DSL-Spring-boot-and-Rabbitmq-tp5799453p5799790.html
Sent from the Camel - Users mailing list archive at Nabble.com.