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.
> 

Reply via email to