MY 局势
我有一个程序,即FTP和另一个电子邮件程序。
While I am done with FTP I want to email a success notification. So the email process is watching for a new file pr configuration file to come in to a particular directory
外籍人权利论坛程序创建了一个适合电子邮件程序的文件,在财产档案中,电子邮件越来越多或更少。
我面临的问题是,在我创建档案并撰写文件时。 电子邮件程序对新档案进行检测,并在文件编写之前或提交时予以公布。 因此,它只能使用无效参数。 虽然我可以把睡在电子邮件程序之上,但它不会对所有案件工作,而且会阻碍其他填写档案的人。
What can I use to -create a property file which cannot be read untill it is completely written -or create a property file with a lock which can be unlocked from another process if need be.
我的选择是什么?
As far as now: - I have tried using apache commons configuration to setProperty it created the same old read/write access problem - I created a property =new property and used store method to create the file. Even then the Email process would read before it is completely
FYI:Email Process有“望报”,在创建新档案时写。