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