camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel shutsdown route even when using failover
Date Tue, 19 Feb 2013 14:21:21 GMT
On Tue, Feb 19, 2013 at 3:17 PM, Marco Crivellaro <marco.crive@gmail.com> wrote:
> I've tried what you've suggested but the route will shutdown in in case the
> broker connection is lost, in my previous test it looked like System.Runtime
> was being called. This is how my main method looks like now:
>

Maybe its due the JVM terminating itself when there is no non-daemon
threads anymore.
Not sure if that's the case though.



>
> public class MainHulk {
>
>         private static Logger LOG = LoggerFactory.getLogger(MainHulk.class);
>         private Main main;
>         public static void main(String[] args) throws Exception  {
>
>                 LOG.info("Starting HULK mock");
>                 MainHulk hulk = new MainHulk();
>                 DOMConfigurator.configure("log4j.xml");
>                 hulk.boot();
>         }
>
>         public void boot() throws Exception {
>                 main = new Main();
>                 main.enableHangupSupport();
>                 main.setApplicationContext(new
> FileSystemXmlApplicationContext("camel-context.xml"));
>         }
>
> }
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-shutsdown-route-even-when-using-failover-tp5727781p5727795.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message