lockName = lockName.intern(); if (isLockOwner(null, lockName)) { Transaction t = getTransaction(); if (t != null) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is in a JTA transaction. " + "Return deferred by: " + Thread.currentThread().getName()); if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' returned by: " + Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to return by: " + Thread.currentThread().getName()
public void afterCompletion(int status) { try { releaseLock(lockName, true); } catch (LockException e) { // Ignore as can't be thrown with fromSynchronization set to true } } }
if (!isLockOwner(conn, lockName)) { if(log.isDebugEnabled()) { log.debug( Transaction t = getTransaction(); if (t != null) { try { getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
if (!isLockOwner(conn, lockName)) { if(log.isDebugEnabled()) { log.debug( Transaction t = getTransaction(); if (t != null) { try { getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
lockName = lockName.intern(); if (isLockOwner(null, lockName)) { Transaction t = getTransaction(); if (t != null) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is in a JTA transaction. " + "Return deferred by: " + Thread.currentThread().getName()); if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' returned by: " + Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to return by: " + Thread.currentThread().getName()
/** * Release the lock on the identified resource if it is held by the calling * thread, unless currently in a JTA transaction. */ public synchronized void releaseLock(String lockName) throws LockException { releaseLock(lockName, false); }
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
lockName = lockName.intern(); if (isLockOwner(null, lockName)) { Transaction t = getTransaction(); if (t != null) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is in a JTA transaction. " + "Return deferred by: " + Thread.currentThread().getName()); if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' returned by: " + Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to return by: " + Thread.currentThread().getName()
/** * Release the lock on the identified resource if it is held by the calling * thread, unless currently in a JTA transaction. */ public synchronized void releaseLock(String lockName) throws LockException { releaseLock(lockName, false); }
/** * Determine whether the calling thread owns a lock on the identified * resource. */ public synchronized boolean isLockOwner(Connection conn, String lockName) { lockName = lockName.intern(); return getThreadLocks().contains(lockName); }
lockName = lockName.intern(); if (isLockOwner(null, lockName)) { Transaction t = getTransaction(); if (t != null) { if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is in a JTA transaction. " + "Return deferred by: " + Thread.currentThread().getName()); if(getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' returned by: " + Thread.currentThread().getName()); getThreadLocks().remove(lockName); locks.remove(lockName); this.notify(); } else if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' attempt to return by: " + Thread.currentThread().getName()
public void afterCompletion(int status) { try { releaseLock(lockName, true); } catch (LockException e) { // Ignore as can't be thrown with fromSynchronization set to true } } }
Log log = getLog(); if (!isLockOwner(conn, lockName)) { if(log.isDebugEnabled()) { log.debug( Transaction t = getTransaction(); if (t != null) { try { getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
public void afterCompletion(int status) { try { releaseLock(lockName, true); } catch (LockException e) { // Ignore as can't be thrown with fromSynchronization set to true } } }
Log log = getLog(); if (!isLockOwner(conn, lockName)) { if(log.isDebugEnabled()) { log.debug( Transaction t = getTransaction(); if (t != null) { try { getThreadLocks().add(lockName); locks.add(lockName); } else if(log.isDebugEnabled()) {
/** * Release the lock on the identified resource if it is held by the calling * thread, unless currently in a JTA transaction. */ public synchronized void releaseLock(Connection conn, String lockName) throws LockException { releaseLock(lockName, false); }
/** * Release the lock on the identified resource if it is held by the calling * thread, unless currently in a JTA transaction. */ public synchronized void releaseLock(Connection conn, String lockName) throws LockException { releaseLock(lockName, false); }
public void afterCompletion(int status) { try { releaseLock(lockName, true); } catch (LockException e) { // Ignore as can't be thrown with fromSynchronization set to true } } }