352353354355356357358359360361362
route.getConsumer().stop(); route.getEndpoint().stop(); } ActiveMQComponent amqc = (ActiveMQComponent) context.getComponent("activemq"); amqc.stop(); amqc.shutdown(); if (logger == null) { System.out.println("Stopping Camel Context"); } else {