Results 1 to 3 of 3

Thread: File outbound Adpater writes one file per message

  1. #1
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default File outbound Adpater writes one file per message

    I have used file outbound adapter which listens to the global error channel

    <file:outbound-channel-adapter channel="errorChannel" directory="file:${ErrorDirectoryLocation}" delete-source-files="true" />

    But now i see one file per messages. I want all exceptions in one log file .How do i do this ?

    I do not want to read from these files using another adaptor and write to a single file , which may be a performance hit. I want this to be done in a single adapter .

    Should i be writing my own adaptor or spring provides any thing out of the box ?

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    We have been discussing a file appender for 2.0. Can you raise a JIRA issue for that?

    In the meantime, I think the easiest solution would be a POJO that appends to a File referenced from an 'outbound-channel-adapter' element (or 'service-activator' if you want it to return something).

    Thanks,
    -Mark

  3. #3
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

Posting Permissions

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