camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Payne <>
Subject Re: Self-termination of a Camel program
Date Thu, 29 May 2014 17:22:09 GMT
I have this working using


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 <> 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message