A standard trick is to write to a randomly named temp file (in the same
directory, usually.)  When you've closed that file, rename the temp file
to the real file.  The rename operation is atomic so you can avoid any
other synchronization.

-- Scott

Hans diez wrote:

> I'm worried about synchronization problems
> that may occur if a servlet modifies static
> html pages.
> I can handle the java-side without problems,
> since the modifying servlet is restricted to
> a single authorized user. The modified file,
> however, may be served by apache to many
> different users.



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to