On Tue, Feb 14, 2012 at 10:01 AM, Samruben <ramyasri....@gmail.com> wrote:
> 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?
>

What do you mean? The code above just needs camel-core JAR.

> --
> 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.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to