Re: Odd locked file behavior - Any assistance greatly appreciated

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It just seems like a defective process at a basic level. I'm not sure what
document would describe it. How could the java app know that the file is
complete and that you are not about to start writing some more data to it,
unless it read the contents and applied some logic to say the file was valid
and complete - which is what your trigger does? You would have to either
lock the file for exclusive use until it was ready, in your app, or signal
to the java app that a new file was available when you app has finished
writing the file.
Anthony


"Allen C." <AllenC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3F7014C9-2DA0-4EB1-9459-7AC1BF16F4F3@xxxxxxxxxxxxxxxx
I'll try to be as brief as possible. I have an application installed at
one
of our customer sites. The application creates data files (with trigger
files) to feed other systems. Our customer has written a Java based
application to move these export files from our application server to
another
system. The Java application doesn't monitor for our trigger file instead
monitoring for a file to be created. Once the file appears in the file
system their Java application attempts to move the file. Their thought
process is that if we are creating/modifying the file then it will be
locked
so the Java app will not be able to process the file so it will in turn
wait
until a later time and try again. We are periodically running into a
problem
where our output file is truncated. Reviewing our log files indicate that
we
loose access (write/close/etc) to the file. My suspicion is that when
their
Java application makes a request to move the file just prior to our
application writing to the file that it is causing the contention. I
would
be grateful if anyone can confirm my suspicions and point me to a
technical
article that I can forward to them so that they will modify their process.

Thank you in advance.
Allen



.



Relevant Pages

  • Re: Odd locked file behavior - Any assistance greatly appreciated
    ... issuing a file move command would be sufficient. ... force them to start using our trigger files. ... How could the java app know that the file is ...
    (microsoft.public.windows.server.general)
  • Re: Odd locked file behavior - Any assistance greatly appreciated
    ... issuing a file move command would be sufficient. ... force them to start using our trigger files. ... How could the java app know that the file is ...
    (microsoft.public.windows.server.general)
  • [Fwd: Re: Performance tools and JAVA]
    ... Subject: Performance tools and JAVA ... Under consideration we have a large Java app of dubious quality that ... But what is fair for any language: ... For IBM-MAIN subscribe / signoff / archive access instructions, send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html. ...
    (bit.listserv.ibm-main)
  • Re: [9fans] remote access to audio devices
    ... from the rest of his post, i gather that the claim isn't that Java vs. C code of equivalent ... application of vaguely equivalent description written in C. the VNC examples given ... say, basically, that the Java app performs better out of the box than the C app, but it ... Thanks for writing that Anthony, these things are all pretty clear in my head, but writing them out clearly is quite hard work. ...
    (comp.os.plan9)
  • Re: Call a Java Program into a Presentation
    ... Action Settings and "Run Program". ... Obviously you need to ensure your path to Java app and all dependent classes ... The presentation is how a calculator was created and I want ...
    (microsoft.public.powerpoint)