Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-805

dynamically create directories with file:outbound-channel-adapter

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Complete
    • 2.2 M2
    • 2.2 M3 Sprint 2, 2.2 M3
    • Adapters
    • None

    Description

      I am writing an application that handles messages coming in thru a webservice. For auditing all incoming messages have to be saved to disk. Because a potential large amount of messages will be handled, and they should be easily found back later, I would like to be able to save my messages into different directories based on the date.

      Currently I can set a filename per message. In addition to that I would like to be able to set a directory relative to the base-directory specified in the outbound-channel-adapter. If this directory doesn't exist, it should be created.

      To remain backwards compatible I image the filename header can contain a String - use the current behaviour - or a File - use the proposed behaviour.

      In addition, the FilenameGenerator should be enhanced to be able to return a full (relative) path.

      Attachments

        Issue Links

          Activity

            People

              hillert Gunnar Hillert
              corani Daniel Bos
              Votes:
              7 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1d
                  1d
                  Remaining:
                  Time Spent - 0.75d Remaining Estimate - 0.25d
                  0.25d
                  Logged:
                  Time Spent - 0.75d Remaining Estimate - 0.25d
                  0.75d