I'm new to Camel and trying to do simple thing. Inside Camel I want to expose Web Service that will have Request and Response
public Response myMethod(Request r) {
//some logic here
}
Inside this method I will do request validation: and if invalid I will reply with certain code (FAILURE) in Response.
If it is valid, then I will ALSO reply with another code (SUCCESS).
In case of success I need Camel route to kick in, take Request, transform it and send to another service.
What I do not understand is - how do I reply to the client with Response and AT THE SAME time will kick off Camel Route.
Tried to find that example on Google ... was not able to. Can Camel do what I want ?