Re: Odd locked file behavior - Any assistance greatly appreciated
- From: "Anthony" <anthony.spam@xxxxxxxxxxxxxx>
- Date: Mon, 28 Aug 2006 15:50:53 +0100
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
.
- Follow-Ups:
- Prev by Date: RE: SCECLI 1202 0x534 No mapping between account names and security ID
- Next by Date: Re: Issues logging in
- Previous by thread: Re: Windows one care
- Next by thread: Re: Odd locked file behavior - Any assistance greatly appreciated
- Index(es):
Relevant Pages
|