src/main/java/org/jboss/util/deadlock/DeadlockDetector.java
/**
    * Add a transaction waiting for a lock
    * @param holder 
    * @param resource 
    */
Add a transaction waiting for a lock
@param holder
@param resource
Add a transaction waiting for a lock @param holder @param resource
public void addWaiting(Object holder, Resource resource)
   {
      synchronized (waiting)
      {
         waiting.put(holder, resource);
      }
   }
public void addWaiting ( Object holder , Resource resource ) { synchronized ( waiting ) { waiting . put ( holder , resource ) ; } }
Add a transaction waiting for a lock
 @param holder
 @param resource
Add a transaction waiting for a lock @param holder @param resource