Hi

Yeah it looks fine.


On Tue, Mar 29, 2011 at 9:53 PM, jpalmer1026 <[email protected]> wrote:
> 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
> doing?
>
> import org.apache.camel.spring.Main;
>
> public class MainSpring {
>    private Main main;
>
>    public static void main(String[] args) throws Exception {
>        MainSpring example = new MainSpring();
>        example.boot();
> //        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
> JVM
>        main.enableHangupSupport();
>        main.setApplicationContextUri("spring-config.xml");
>
>        // run until you terminate the JVM
>        System.out.println("Starting Camel. Use ctrl + c to terminate the
> JVM.\n");
>        main.run();
>    }
>
> }
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Using-Camel-with-Spring-tp4269926p4270036.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to