I manage to get it working, I think I was setting the context in the wrong way. This now works, camel context won't stop and wait for the broker to reconnect using failover provided via config
public class MainHulk { private static Logger LOG = LoggerFactory.getLogger(MainHulk.class); private Main main; public static void main(String[] args) throws Exception { DOMConfigurator.configure("log4j.xml"); LOG.info("Starting HULK mock"); MainHulk hulk = new MainHulk(); hulk.boot(); } public void boot() throws Exception { main = new Main(); main.setFileApplicationContextUri("camel-context.xml"); main.enableHangupSupport(); main.run(); } } -- View this message in context: http://camel.465427.n5.nabble.com/camel-shutsdown-route-even-when-using-failover-tp5727781p5727825.html Sent from the Camel - Users mailing list archive at Nabble.com.