How to properly stop camelContext from being killed in a standalone application
问题 To create a Camel application which consumes from ActiveMQ's queue, I wrote a standalone Camel application following this tutorial: http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html The difference was The Main class from camel-spring used instead of camel-core: My Main class: try { Main main = new Main(); main.setApplicationContextUri("conf/spring-context.xml"); main.run(); } catch (Exception ex) { LOGGER.error(String.format(DifClientConstants.ERROR_START_CLIENT,