I have this working using org.apache.camel.main.Main
I can send an example after work. My guess is that someone will send an example before that. --Matt Payne On Thu, May 29, 2014 at 12:12 PM, Camel Guy <ca...@devguy.com> wrote: > Hello again fellow riders, > > I would like to my camel program to terminate shortly after the camel > context stops. > > I know how to stop a camel context in a background thread. I have indeed > verified that no routes are running via jconsole. etc. > > When using the Maven camel-exec plugin, apparently the process must be > killed (via, say, sigint) even after the camel context stops. > > It appears that I need to write my own Java class (e.g. with static main) > that starts the context and polls context.getStatus to determine when to > exit. I wanted to double check first. I know this topic has been discussed > many times before but obviously I didn't find an answer in the search > results. Perhaps someone has a better suggestion. > > > Thank you, > cg > -- --Matt Payne