camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpalmer1026 <>
Subject Re: Using Camel with Spring
Date Tue, 29 Mar 2011 19:53:48 GMT
Thanks Claus. 

Based on the link that you posted, I changed my Java main to the below and
everything seems to be working great. Just for my edification, does this
look roughly correct to you or am I doing something that I shouldn't be

import org.apache.camel.spring.Main;

public class MainSpring {
    private Main main;

    public static void main(String[] args) throws Exception {
        MainSpring example = new MainSpring();
//        new ClassPathXmlApplicationContext("spring-config.xml");

    public void boot() throws Exception {
        // create a Main instance
        main = new Main();
        // enable hangup support so you can press ctrl + c to terminate the

        // run until you terminate the JVM
        System.out.println("Starting Camel. Use ctrl + c to terminate the


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message