I'm new to Apache Camel, I have a camel rest endpoint which receives some JSON data and operates some changes to a database table. The data is sent by some application via a POST request, and I want to notify this application if the whole processing is OK/KO by sending back a response code with some information after the camel Route is done. Is there a way to do that ?
EDIT : To give some more information, the whole schema will look like this :
// PART 1
from(rest:restEndpoint)
.process(someProcessing) // process number 1
.to(activemq:queue:somequeue)
// PART 2
from(activemq:queue:somequeue)
.process(someOtherProcessing) // process number 2
The question here is to know if there is a way to reply back the caller application after finishing each one of the two processes.