Re: Camel 2.2 Removal of Endpoint Files

2011-09-03 Thread Claus Ibsen
On Sat, Sep 3, 2011 at 7:57 AM, Craig Taylor wrote: > I resolved this issue by dynamically creating a RouteBuilder,  then removing > the route after a small period of time had passed (in my case, it should be > safe to do). > > However, one of the other thoughts that had occurred to me afterwards

Re: Camel 2.2 Removal of Endpoint Files

2011-09-03 Thread Claus Ibsen
On Fri, Sep 2, 2011 at 9:34 PM, Craig Taylor wrote: > From a file based endpoint (eg: file, ftp, sftp) uri I'm attempting to > remove files via the following: > > public void removeFilesFromUri( ConsumerTemplate consumerTempl, CamelContext > camlContext, String uri ) > { >        uri = uri + "&del

Re: Camel 2.2 Removal of Endpoint Files

2011-09-02 Thread Craig Taylor
I resolved this issue by dynamically creating a RouteBuilder, then removing the route after a small period of time had passed (in my case, it should be safe to do). However, one of the other thoughts that had occurred to me afterwards is that camel may be maintaining a list of exchanges internall

Camel 2.2 Removal of Endpoint Files

2011-09-02 Thread Craig Taylor
>From a file based endpoint (eg: file, ftp, sftp) uri I'm attempting to remove files via the following: public void removeFilesFromUri( ConsumerTemplate consumerTempl, CamelContext camlContext, String uri ) { uri = uri + "&delete=true"; consumerTempl.start(); Exchange exc