> Thanks, I am able to configure as you said...

Good to hear that. Better stick to the EIP (Dynamic Router, Recipient
List, etc) than to low-level Camel API.

> let me know whether i can use context.addRouteDefinitions(routeList).
> addRouteDefintions method shows as deprecated..

All you need to do is use ModelCamelContext interface instead of CamelContext.

ModelCamelContext context = new DefaultCamelContext();
context.addRouteDefinition(...);

Route definition API has been moved to more specialized interface, as
not every CamelContext implementation need to support route
manipulation (although DefaultCamelContext does so).

Laters.

--
Henryk Konsek
http://henryk-konsek.blogspot.com

Reply via email to