Results 1 to 2 of 2

Thread: Dynamically set 'directory' for file inbound-channel-adapter?

  1. #1
    Join Date
    Jan 2012
    Posts
    1

    Default Dynamically set 'directory' for file inbound-channel-adapter?

    Is it possible to set/update the directory on a file inbound-channel-adapter? For example, allowing a user to change the 'inbound directory' through some UI and then updating the adapter on-the-fly to reflect this change?

    I know that the directory can be specified within the application context (as well as externalized to a properties file, etc.), but is there any way to change the directory value after it has been initialized? Or would we have to update the property and then refresh the context?

    Code:
    <file:inbound-channel-adapter id="inboundAdapter" directory="/some/directory" auto-create-directory="true" filename-regex=".*\.csv">
      <int:poller cron="0 * * * * ?" max-messages-per-poll="5" />
    </file:inbound-channel-adapter>
    Thanks in advance.

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,040

    Default

    There is currently no support for this.

    Feel free to write up a new feature JIRA here... https://jira.springsource.org/browse/INT
    ... and we'll consider it for a future release.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •