Announcement Announcement Module
Collapse
No announcement yet.
File outbound Adpater writes one file per message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Thanks mark.

      http://jira.springframework.org/browse/INT-769

      Comment

      Working...
      X