Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-12-10 Thread Aida
Hi, I have been investigating more deeply, and I have this stacktrace. The problem is solved for me removing the "disconnect" option from the endpoints consumed by the consumerTemplate (but I add here the stacktrace in case it can help to somebody else). Otherwise, sometimes a NullPointerException

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-12-04 Thread Aida
Hi, Thank you very much, as you said doing that the threads are cleaned up :) I should have tried that before, my apologies ... I'm sorry to bother you, but after using that approach and consuming files intensively I have seen that sometimes the consumerTemplate cannot be stoppped, and, in that

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-12-03 Thread Claus Ibsen
On Mon, Dec 3, 2012 at 4:57 PM, Aida wrote: > Hi again, > > I fear that after upgrading to Camel 2.9.4 this problem still remains, at > least for me (I see that the issue was fixed for 2.9.2 and 2.10.0). I > couldn´t test it with Camel 2.10.0 because of cxf incompatibilities. > > I have been doing

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-12-03 Thread Aida
Hi again, I fear that after upgrading to Camel 2.9.4 this problem still remains, at least for me (I see that the issue was fixed for 2.9.2 and 2.10.0). I couldn´t test it with Camel 2.10.0 because of cxf incompatibilities. I have been doing some tests in real and I have been able to "produce" 50

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Claus Ibsen
On Fri, Mar 9, 2012 at 1:31 PM, Aida wrote: > Ok, thank you Claus. > > I am looking forward to the improvement. Meanwhile I will use a filter class > as you suggested to minimize the impact. > The fix/improvement has been committed to trunk and the 2.9.x branch. > Thanks again. > > -- > View th

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Aida
Ok, thank you Claus. I am looking forward to the improvement. Meanwhile I will use a filter class as you suggested to minimize the impact. Thanks again. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-ConsumerTemplate-Threads-remaining-alive-tp5548338p5550436.html Sent fr

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Claus Ibsen
Hi I logged a JIRA to improve this to shutdown the thread pools more eagerly https://issues.apache.org/jira/browse/CAMEL-5072 On Fri, Mar 9, 2012 at 12:39 PM, Aida wrote: > Here is: > > -- > Name: Cam

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Aida
Here is: -- Name: Camel (processesCamelContext) thread #22 - ftp://ftp_user@test_host.com:21/readFileDir State: WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@36bc16b2

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Claus Ibsen
On Fri, Mar 9, 2012 at 11:58 AM, Aida wrote: > Hi again, > > I have upgraded to camel 2.9.1 in order to avoid CAMEL-4976  but there is no > changes. > > I also try to stop the endpoint (no changes again) and use the > ServiceHelper.stopAndShutdownService(enpoint) with no success. > > The EndpointR

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Aida
Hi again, I have upgraded to camel 2.9.1 in order to avoid CAMEL-4976 but there is no changes. I also try to stop the endpoint (no changes again) and use the ServiceHelper.stopAndShutdownService(enpoint) with no success. The EndpointRegistry's size remains stable although I can still see the

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Claus Ibsen
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 ther

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Aida
Hi Claus, This is quite weird but calling ”camelContext.removeEndpoints(endpointUri)” has no effect, the threads still there (from now, the inmortal thread, ;-D) Furthermore, if I call “camelContext.getEndpoints()” these endpoints are not in the list. If it helps, I am using a spring based ca

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Claus Ibsen
CamelContext has API to remove endpoint(s). You can use that. On Fri, Mar 9, 2012 at 10:15 AM, Aida wrote: > Hi, > > First of all, thanks for the quick response. > > I will try to explain with more details what I am doing: > 1) I build the endpoint uri to retrieve the file from the FTP server. E

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-09 Thread Aida
Hi, First of all, thanks for the quick response. I will try to explain with more details what I am doing: 1) I build the endpoint uri to retrieve the file from the FTP server. Each day, the file has a different name (based on date), so the endpoint has to be created dynamically. 2) Save the ret

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-08 Thread Claus Ibsen
Hi Read the java doc of the consumerTemplate http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ConsumerTemplate.html You need to done the UoW on the exchange. On Thu, Mar 8, 2012 at 7:04 PM, Aida wrote: > Hi all. > > I am using the FTP component (Camel 2.9.0) and a Con

Re: [FTP + ConsumerTemplate] Threads remaining alive

2012-03-08 Thread Ashwin Karpe
Hi, Can you please provide further details such as - Camel version - Use-case details (Camel route details and where/how the consumer Template is being utilized). - Any exceptions being thrown Unfortunately, it is not very straightforward to diagnose the issue based on