Actually I am sending 'SampleBean' in body, then want to check if 'name' is null or not in bean and returning boolean result. for this I have method, 'checkForName'. If name present then I want to do another validation by calling 'validate' method by using same bean 'SampleBean'.
My problem is that while calling 'validate' method its taking 'boolean' as parameter whereas method is expecting the 'SampleBean'. How to keep flowing same datatype throughout the route?
Please help me. Thanks in advance.
Just a curiosity and if possible, can you write the java code that is similiar to the routing?
By that I mean can we solve this routing using simple java code before we use Camel routing?
Hi,
Actually I have java code for the same, what I am trying to do is that I want to move all this in XML(routes) so that it will be more configurable. Means suppose(for current example of validation) if in future I have to remove any validation then I will just need to update my XML file(routes that I have written) & I don't need to touch my java class. Also it is more easy to use any other validation or any other thing.
Hey
I was trying different combination & I got the solution, may be need to test well. But if I replace <camel:simple>${body} == true </camel:simple> by <camel:simple>${in.body} </camel:simple> then it is solving my problem.