Hi 
I have seen some simplerouterfromxml java file in the link

http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jaxb/SpringLoadRouteFromXmlTest.java?view=markup&pathrev=1040085

whether I need to do the same thing or its for older version?

// load route from XML and add them to the existing camel context
InputStream is = getClass().getResourceAsStream("barRoute.xml");
RoutesDefinition routes = context.loadRoutesDefinition(is);
context.addRouteDefinitions(routes.getRoutes());

what jars do i need to include the Inputstream?

--
View this message in context: 
http://camel.465427.n5.nabble.com/loading-xml-file-tp5481677p5481895.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to