Examples of enableHangupSupport()


Examples of org.apache.camel.spring.Main.enableHangupSupport()

    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.enableHangupSupport();
        main.run();
    }

}
View Full Code Here

Examples of org.apache.camel.spring.Main.enableHangupSupport()

        // Main makes it easier to run a Spring application
        Main main = new Main();
        // configure the location of the Spring XML file
        main.setApplicationContextUri("META-INF/spring/camel-context.xml");
        // enable hangup support allows Camel to detect when the JVM is terminated
        main.enableHangupSupport();
        // run and block until Camel is stopped (or JVM terminated)
        main.run();
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.