Embodiments of the present invention address deficiencies of the art in
respect to managing resource locks and provide method, system and
computer program product for managing long-lived resource locks. In a
first embodiment, a data processing system for managing long-lived
resource locks can include one or more work items disposed in a database
of work items, each of the work items including a lock time and a lock
flag. The system also can include one or more worker tasks in a work
system enabled to access the work items and to assert locks on the work
items. Notably, the system can include a stale lock detection task in an
administration system enabled to detect and release stale locks in the
work items. Finally, the system can include a lock assertion task in the
work system enabled to maintain locks on the work items on behalf of
corresponding ones of the worker tasks utilizing the work items.