OK. Thanks you!


Jean-Baptiste Onofré wrote:
> 
> Ah ok, sorry for my misunderstanding.
> 
> I see two ways to do it :
> - make a POJO using servicemix-bean to do it all polling logic in your
> bean
> - use servicemix-file and define your own marshaler where you choose when
> pooling or not
> 
> Regards
> JB
> 
> On Friday 20 March 2009 - 04:55, jcamus wrote:
>> 
>> 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.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-start-and-stop-a-filepoller-with-a-message--tp22617263p22620277.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to