I think you can reload the routing.xml just like this[1] [1]http://forum.springsource.org/archive/index.php/t-55148.html
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, August 19, 2013 at 8:29 AM, javag wrote: > I have defined most everything in XML including routing rules and broker > startup that has quite a few schema locations using Camel 2 and ActiveMQ > 5.8. It works fine. But I need the program to pick up any changes made to > XML file without having to restart the program. > > How can I achieve that? > > I am not using maven and cannot use maven in my environment to run the > program. The main method of my program basically looks like this: > > ApplicationContext ctx = new ClassPathXmlApplicationContext("routing.xml"); > > System.out.println("press any key to exit") > System.in.read(); > > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-make-Spring-XML-routing-to-be-automatically-reloaded-tp5737487.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).
