camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samruben <>
Subject Re: loading xml file
Date Tue, 14 Feb 2012 09:01:51 GMT
I have seen some simplerouterfromxml java file in the link

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);

what jars do i need to include the Inputstream?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message