protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) { setApplicationContextUri(parameter); } });
public static void main(String[] args) throws Exception { Main main = new Main(); main.setApplicationContextUri("camelinaction/rest/restOnCompletion.xml"); System.out.println("======================================================="); System.out.println("Starting HTTP server on port 8080"); System.out.println("Hit url http://localhost:8080/service/order/123"); System.out.println("... and press CTRL + C to exit"); System.out.println("======================================================="); main.run(); }
public static void main(String[] args) throws Exception { Main main = new Main(); main.setApplicationContextUri("static-route-embedded.xml"); main.run(); }
public static void main(String[] args) throws Exception { main = new Main(); // load ActiveMQ and Camel from Spring XML files main.setApplicationContextUri("broker.xml;camel.xml"); main.run(); } }
public static void main(String[] args) throws Exception { Main main = new Main(); // the Camel application is configured in XML DSL in this file main.setApplicationContextUri("mycamel.xml"); main.run(); }
public static void main(String[] args) throws Exception { Main main = new Main(); main.setApplicationContextUri("static-route-global.xml"); main.run(); }
public static void main(String[] args) throws Exception { main = new Main(); // load ActiveMQ and Camel from Spring XML files main.setApplicationContextUri("broker.xml;camel.xml"); main.run(); } }
public static void main(String[] args) throws Exception { // use the Main class from camel-spring Main main = new Main(); // to load Spring XML file main.setApplicationContextUri("META-INF/spring/camel-context.xml"); // and enable hangup support which means we can stop nicely when ctrl+c is pressed main.enableHangupSupport(); // and start (will wait until you stop with ctrl + c) main.start(); // echo to console how you can stop System.out.println("\n\nApplication has now been started. You can press ctrl + c to stop.\n\n"); }