org.apache.camel.spring.Main.setApplicationContextUri()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(196)

本文整理了Java中org.apache.camel.spring.Main.setApplicationContextUri()方法的一些代码示例,展示了Main.setApplicationContextUri()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Main.setApplicationContextUri()方法的具体详情如下:
包路径:org.apache.camel.spring.Main
类名称:Main
方法名:setApplicationContextUri

Main.setApplicationContextUri介绍

暂无

代码示例

代码示例来源:origin: org.apache.camel/camel-spring

protected void doProcess(String arg, String parameter, LinkedList<String> remainingArgs) {
    setApplicationContextUri(parameter);
  }
});

代码示例来源:origin: camelinaction/camelinaction2

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();
}

代码示例来源:origin: camelinaction/camelinaction2

public static void main(String[] args) throws Exception {
  Main main = new Main();
  main.setApplicationContextUri("static-route-embedded.xml");
  main.run();
}

代码示例来源:origin: camelinaction/camelinaction2

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();
  }
}

代码示例来源:origin: camelinaction/camelinaction2

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();
}

代码示例来源:origin: camelinaction/camelinaction2

public static void main(String[] args) throws Exception {
  Main main = new Main();
  main.setApplicationContextUri("static-route-global.xml");
  main.run();
}

代码示例来源:origin: camelinaction/camelinaction2

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();
  }
}

代码示例来源:origin: camelinaction/camelinaction

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");
}

相关文章