Ok thanks, but maybe I was not clear enough... What you describe here is the filepoller itself (which I already know how to use it)... My question is : How can start and stop (by programmation or by a message?) a given FilePoller? By default when you define a filepoller it never stops scanning files in the directory specified...I need something I can start and stop at will...
Regards. Jean-Baptiste Onofré wrote: > > Hi, > > you can do it using servicemix-file component. > > Something like : > > <file:poller service="test:poller" > endpoint="poller" > targetService="test:poller" > targetEndpoint="other" > file="file:/path/to/your/dir" > recursive="true"/> > > Regards > JB > > On Friday 20 March 2009 - 02:53, jcamus wrote: >> >> Hi! >> I need to start and stop a given filepoller. This is why : >> >> I have a directory spool than contains file not yet treated by a server >> is >> not yet started. When >> this server is on, a bean detects it and triggers the file poller to scan >> the spool directory. >> When the spool directory is empty the filepoller should stop scanning... >> >> Any ideas to implement that? >> >> Regards. >> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-start-and-stop-a-filepoller-with-a-message--tp22617263p22617263.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/How-to-start-and-stop-a-filepoller-with-a-message--tp22617263p22618888.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
