Multiple choice technology packaged enterprise solutions

I am trying to find out who is holding the lock on a given work object. What is the best way to do this without trying to lock the object?

  1. Use Ob-Open-By-Handle and use the LockInfoPage

  2. Run a RDB method against the database to see who holds the lock

  3. Use the tools.getLockManager().isLocked method in a java step

  4. None

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The tools.getLockManager().isLocked() method checks lock status without attempting to acquire the lock, making it ideal for this diagnostic purpose. The other options either require acquiring locks or use inefficient database queries.

AI explanation

Calling tools.getLockManager().isLocked(...) in a Java step lets you check whether an object is currently locked, and by whom, without yourself attempting to acquire the lock — which would otherwise either succeed (taking the lock) or fail. This makes it the safe, non-intrusive way to inspect lock ownership compared to actually trying to open/lock the object.