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)

This made me think a little bit about routes and if it works per email
message. 

If that is the case, then I may need to use an aggregator strategy. I am
going to try that now but do you think I am on the correct path and my
understanding on routes being one message at a time correct?

Sorry if these are dumb questions as I am on this Camel learning curve (or
should I say trying to ride the Camel)



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Consumer-in-JAX-RS-Web-Service-tp5735968p5736190.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to