// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package routing.demo;

import org.apache.camel.CamelContext;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class TestXmlConfig {
    public static void main(String[] args) throws Exception {
        @SuppressWarnings("resource")
        ApplicationContext app = new FileSystemXmlApplicationContext("C:/work/camel/SpringConfig.xml");
        CamelContext ctx = (CamelContext)app.getBean("camel");
        ctx.start();
        System.out.print("Press enter to exit");
        System.in.read();
        ctx.stop();
        ctx.close();
    }
}
