camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: [FTP + ConsumerTemplate] Threads remaining alive
Date Fri, 09 Mar 2012 09:56:23 GMT
On Fri, Mar 9, 2012 at 10:50 AM, Aida <> wrote:
> Hi Claus,
> This is quite weird but calling ”camelContext.removeEndpoints(endpointUri)”
> has no effect, the threads still there (from now, the inmortal thread, ;-D)

Can you try to stop the endpoint before removing it.
Also see CAMEL-4976 as there may was a problem with this.

> Furthermore, if I call “camelContext.getEndpoints()” these endpoints are not
> in the list.

Instead of using different endpoints all the time. You can use the
same endpoint.
And then use a filter class, where you in the filter class can check
if you accept the file or not.

Also see this FAQ

> If it helps, I am using a spring based camel context.
> Moreover, I see that the GenericFileEndpoint are “not lenient” by default
> (line 326 in DefaultEnpoint) so when I get the endpoint key, the properties
> (filename among others) are used to create the key, so I always get a
> different endpoint for each file read, isn’t it?
> Thanks again for your time
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message