public static void main(String[] args) throws Exception { URL file = new URL("file:///Volumes/DATA/Dropbox/wdz/20131116-1130.DAD"); ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("tangle-spring.xml"); SectionService service = ctx.getBean(DADSectionService.class); service.process(file, Interval.MIN5); }