Announcement

Collapse

NextGen (Mirth) Connect 3.10.0 Released!

NextGen (Mirth) Connect 3.10.0 is now available as an appliance update and on our GitHub page. This release includes better SQL Server database support, security improvements through fixes and library updates, and improvements for the Advanced Clustering plugin with a focus on improving performance of many of the tasks that are carried out on a frequent interval. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

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