lock/unlock
Apply synchronization locks around access to URIs
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > lock/unlock

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:ext:sys

Definition

Active URI Base

active:lock or unlock

Format

<instr>
  <type>lock</type>
  <operand>file:/inventory.xml</operand>
</instr>

Syntax

ArgumentRulesDescription
typeMandatory lock or unlock
operandMandatory the resource to which transaction applies

The lock accessor is used to place a named resource into a transaction. When a resource is locked the current request gains an exclusive lock on the resource which stops other processes from gaining it until this transaction ends. A concurrent call to lock will block indefinately until the resource can be obtained.

lock can be used with <exception> handling blocks to create robust transactional applications.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.