title: Spring integration : replace xml configured bean property dynamically?
body: <p>I'm trying to do a ftp poller with the help of Spring integration and the poller works great with the xml configuration. Now I would like to be able to dynamically set some properties of the poller like the cron-expression or the polling rate to make it configurable by java code and link it to a web interface.  </p>
  
  <p>I have seen a lot of topics around the subject but nothing really clear to do that.<br>
  Is there a classic way of doing that ?<br>
  Can it be done with SpeL ?</p>
  
  <p>My bean poller declaration in XML is as follows :  </p>
  
  <pre><code>&lt;int-ftp:inbound-channel-adapter id="ftpInbound"
      channel="ftpChannel" session-factory="ftpClientFactory"
      filename-regex=".*\.tmp$" auto-create-local-directory="true"
      delete-remote-files="false" remote-directory="/cft-polling" local-directory="file:target/ftp-output" &gt;
      &lt;int:poller fixed-rate="1000" /&gt;
  &lt;/int-ftp:inbound-channel-adapter&gt;
  
  &lt;int:channel id="ftpChannel"&gt;
      &lt;int:queue /&gt;
  &lt;/int:channel&gt;
  </code></pre>