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