I would like to have a REST web service using Apache CXF and send incomming requests to a camel:route for processing. Is it possible to create a response synchronnously (if a error during the processing occurs) from the route or not?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. In fact this is the default. You can either use camel-cxf to trigger the route or use a direct endpoint to send something into the route.
With the direct endpoint you would do the following:
producer = camelContext.createProducerTemplate();
try {
result = producer.requestBody(“direct:test”, myContent);
} catch (Exception e) {
…
}
The respective route then would have to start with:
from(“direct:test”)…