I find Camel easy for difficult use cases but hard to simple use cases. Or
maybe I haven't still mastered it.
I have a JAX-RS web service that when executed, will dynamically create a
route that reads mail from an IMAP server and then gets processed via a
bean.
My problem is that I need to add Th
Thanks for responding Sergey.
I assume you mean adding the "to" part of the route.
I did this
camelContext.addRoutes(new RouteBuilder() {
public void configure() throws Exception {
from(MAIL_ENDPOINT
Thanks Sergey and Claus.
Using both of your suggestions (i.e. running the routes in a new thread and
using the onCompletion, I was able to get it to work, sort of :(
What I notice is that the onCompletion does not fire after all the mails are
received, but after 2-3 mails. (it is not consistent)