camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gnanaguru S <>
Subject Re: Duplicate Camel routes
Date Tue, 24 Sep 2013 07:40:31 GMT

Am sorry, Its my mistake. I am creating new camel context's every time,
instead of adding routes to the existing Camel context. 

I am creating new default camel context every time:

CamelContext context = new DefaultCamelContext();
context.addRoutes(new FTPRouteBuilder(context, channelId, fromUri, toUri));

Any advice for me to add routes to the existing context ? I am able to see
some documentation on loading routes from XML file but not using API's. 


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

View raw message