Re: How to dynamically configure directory on file consumer

2013-05-02 Thread Erker, Carsten
I'd like to share my workaround in case anybody is interested (using Camel 2.11.0): I was successful with the following approach: camelContext.stopRoute( "my-file-route", 30, SECONDS ); camelContext.removeRoute( "my-file-route" ); MyPollingRoutes newRoutes = new MyPollin

Re: How to dynamically configure directory on file consumer

2013-05-01 Thread Erker, Carsten
Claus, thanks a lot for opening the ticket, using JMX would be a good way for changing the behavior during runtime. @Tobias: In the meantime I'll try with your approach. Thanks for hinting to the properties component. Am 01.05.2013 um 08:01 schrieb Claus Ibsen: > Hi > > This seems like a

Re: How to dynamically configure directory on file consumer

2013-04-30 Thread Claus Ibsen
Hi This seems like a good idea. I have logged a ticket to make this easier https://issues.apache.org/jira/browse/CAMEL-6329 On Tue, Apr 30, 2013 at 5:22 PM, Erker, Carsten wrote: > Hi, > > we got a route starting with a File consumer (from("file://input"...) and a > requirement to have the inpu

Re: How to dynamically configure directory on file consumer

2013-04-30 Thread Tobias Hofer
ct: How to dynamically configure directory on file consumer > > Hi, > > we got a route starting with a File consumer (from("file://input"...) > and a requirement to have the input directory configurable, i.e. in > our application there is some admin functionality to change

How to dynamically configure directory on file consumer

2013-04-30 Thread Erker, Carsten
Hi, we got a route starting with a File consumer (from("file://input"...) and a requirement to have the input directory configurable, i.e. in our application there is some admin functionality to change the directory which the file consumer is polling. This is stored in the database. I guess thi