server.lock() (Method)

A means of locking the server object to prevent contention between scripts.


JavaScript - 1.1
Netscape Enterprise server - 2.0
JavaScript syntax:NESserver.lock()

The server lock would be used at a higher hierarchical level than the project lock mechanism.

It is vitally important that you don't hog a lock on the server object as this can deny server access to all other users

The lock will stall if another script currently has a lock extant on this project. The method will then return when that lock is relinquished.


See also:project.lock()