@org.junit.Test public void testEncryption() throws Exception { // Start up the Camel route Main main = new Main(); main.setApplicationContextUri("camel-encryption.xml"); main.start(); // Sleep to allow time to copy the files etc. Thread.sleep(10 * 1000); main.stop(); }
public static void main(String[] args) throws Exception { new ClassPathXmlApplicationContext("/META-INF/spring-context.xml"); Main main = new Main(); main.run(); }
protected void startCamel() throws Exception { main = new Main(); main.setApplicationContextUri("META-INF/spring/camel-config.xml"); main.start(); }
protected void stopCamel() throws Exception { if (main != null) { main.stop(); } }
public static void main(String... args) throws Exception { Main.main("-ac", "/context.xml"); }