Hi,
I have a use case were I need to read some files from a FTP server in case a
HTTP request is received. More precisely: I have a webservice and when this
webservice is invoked through a HTTP request I'd like to read files from a
FTP server and return the content as a HTTP response through the webservice.
The problem however is that the FTP component uses a ScheduledPollConsumer.
But I need a EvenDrivenConsumer to read from FTP since I only need to access
the FTP server when I receive a HTTP request through the webservice. Any
ideas?
I've tried using the FTP consumer inside pollEnrich(), but this isn't any
different from using the FTP consumer inside a from(). As soon as the route
is initialized it starts polling the remote server. What I'd like to do is:
from("servlet://my/web/service").pollEnrich("ftp://[email protected]/baz", 1000)
And only have the FTP consumer polling for 1000 ms when the servlet is
invoked.
Regards,
Richard
--
View this message in context:
http://camel.465427.n5.nabble.com/Event-driven-FTP-consumer-tp3376242p3376242.html
Sent from the Camel - Users mailing list archive at Nabble.com.