Use the ClassPathApplicationContext or the FileSystemApplicationContext
classes from spring to load the XML file.

Then you can get the CamelContext from Spring using the getBean and use the
name of the id attribute on the <camelContext> tag.

You should NOT create a new DefaultCamelContext, all this is created
automatic when you have the <camelContext> in the Spring XML file.
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Loading-camel-context-xml-tp3216112p3226893.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to