Hi

You can see this link how to add new routes from XML files
http://camel.apache.org/loading-routes-from-xml-files.html




On Thu, Aug 15, 2013 at 5:33 AM, bonnahu <bonn...@gmail.com> wrote:
> Hi everyone,
> I want to add a new route to an ClassPathXmlApplicationContext
> programatically.  Like the code below,
> after the springContext is created, can we add a new route to the
> springContext?  Is there a solution?
>
>
> String filename = "META-INF/spring/camel-context.xml";
> AbstractXmlApplicationContext springContext = new
> ClassPathXmlApplicationContext(filename);
>
> thanks in advance!
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-programatically-add-a-route-to-ClassPathXmlApplicationContext-tp5737288.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to