本文整理了Java中org.apache.camel.spring.Main.run()
方法的一些代码示例,展示了Main.run()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Main.run()
方法的具体详情如下:
包路径:org.apache.camel.spring.Main
类名称:Main
方法名:run
暂无
代码示例来源:origin: org.apache.camel/camel-spring
public static void main(String... args) throws Exception {
Main main = new Main();
instance = main;
main.run(args);
}
代码示例来源:origin: org.apache.camel/camel-example-spring
/**
* Allow this route to be run as an application
*/
public static void main(String[] args) throws Exception {
new Main().run(args);
}
代码示例来源:origin: org.apache.camel/camel-example-osgi
/**
* Allow this route to be run as an application
*/
public static void main(String[] args) throws Exception {
new Main().run(args);
}
代码示例来源:origin: apache/servicemix
/**
* Allow this route to be run as an application
*
* @param args
*/
public static void main(String[] args) throws Exception{
new Main().run(args);
}
代码示例来源: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: org.apache.camel/camel-example-loan-broker
public static void main(String... args) throws Exception {
// create a new main which will boot the Spring XML file
Main main = new Main();
main.setApplicationContext(new ClassPathXmlApplicationContext("META-INF/spring/webServiceCamelContext.xml"));
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 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/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();
}
内容来源于网络,如有侵权,请联系作者删除!