On Tue, Feb 19, 2013 at 3:17 PM, Marco Crivellaro <marco.cr...@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: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen