[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Run route and then stop context

I'm just getting started with using Camel and integrating it for new work into an existing batch based legacy workflow. It seems easiest, for now, to use in the legacy workflow if we can execute the Camel job and then completely exit.

This seems to accomplish that:


from("direct:shutdown").id("shutdownRoute").process(new Processor() {
  public void process(Exchange exchange) throws Exception {





Is there a better way to accomplish this? Are there hidden dangers in the approach above?


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03146.html on line 105
Call Stack
10.0006363544{main}( ).../msg03146.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03146.html on line 105
Call Stack
10.0006363544{main}( ).../msg03146.html:0