Announcement

Collapse
No announcement yet.

FileReader and flag file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • FileReader and flag file

    Hi again,

    I've used a FileReader and here's my question:

    How to prevent Mirth from reading incomplete file during a concurrent "my SW write" and "Mirth read" on filesystem?

    It is possible to have Mirth looking for a flag file and then reading a message file.
    So "my SW" can freely write message file and then the flag file.

    Obviously mirth shold then move / delete both file.

    Actually seems not to be possible.

    Thanks
    Stefano.
    Stefano Mastrogiacomo

  • #2
    Re:FileReader and flag file

    A FILE LOCKING scheme can be used. "my SW write" will need to request and obtain an exclusive lock before they write, and release the lock after writing to the file.

    The following article has good info on File Locking:
    http://www.wellho.net/solutions/gene...e-locking.html

    Mirth only reads the files that are not locked. I have tested Mirth with 10,000+ message files being written out at about 45 messages/minute. If the host HL7 system handles file locking correctly Mirth works fine.

    Hope it helps!

    Comment

    Working...
    X