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