本文整理了Java中org.apache.camel.spring.Main.<init>()
方法的一些代码示例,展示了Main.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Main.<init>()
方法的具体详情如下:
包路径:org.apache.camel.spring.Main
类名称:Main
方法名:<init>
暂无
代码示例来源:origin: org.apache.camel/camel-spring
public static void main(String... args) throws Exception {
Main main = new Main();
instance = main;
main.run(args);
}
代码示例来源:origin: stackoverflow.com
public class Main {
public static void main(String[] args) throws Exception {
org.apache.camel.spring.Main camelMain = new org.apache.camel.spring.Main();
camelMain.setApplicationContextUri("application-context.xml");
camelMain.run();
}
}
代码示例来源:origin: stackoverflow.com
org.apache.camel.spring.Main main = new Main();
main.setApplicationContextUri("camel-context.xml");
main.start();
Thread.sleep(1000);
代码示例来源: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();
}
代码示例来源: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");
}
内容来源于网络,如有侵权,请联系作者删除!