0

I'm developing an app which downloads the files from ftp server. However the ftp folder may differ during each run. The ftp folder to be polled is provided by the user.

I noticed the spring documentation mentions remote-directory-expression use but I'm not sure how can I use this for the parameters supplied by a user.

Inputs please.

1 Answers1

0

The expression can reference any bean via @someBean.someMethod().

You might find it easier, however, to use the FTP outbound gateway to get specific files.

Gary Russell
  • 166,535
  • 14
  • 146
  • 179