System.out.println("If an XML config file is not specified then servicemix.xml is used from the CLASSPATH");
return;
}
List processors = new ArrayList();
processors.add(new ClassLoaderXmlPreprocessor(new File(".")));
System.out.println("Loading Apache ServiceMix from file: " + file);
context = new FileSystemXmlApplicationContext(file, processors);
}
SpringJBIContainer container = (SpringJBIContainer) context.getBean("jbi");
container.onShutDown(new Runnable() {