Hello,
I am a newbie to Camel. I've read a bunch of docs, but have not found an
answer to this specific use case.
1. Assume the following.
a. I have the belown XML msg in the body of my Message.
<Example>
<User>joe</User>
</Example>
b. I am using a bean as a Filter. The method signature is
i.
public boolean validateUser(String user)
c. Ideally I would like to user xpath in the config file to pass
"Joe" to the validateUser method
d. If the method returns false, I would like the route to stop.
Don't know how to do this.
e. If the method returns true, I would like to pass the original
XML msg to a processor and finish the route.
f. Is this possible?
Thanks
Geoff Gershaw
===============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================