lockInfo.getTimeUnit());
if( !acquired ) {
String msg = "Serialized access attempt on method " + inv.beanMethod +
" for ejb " + ejbDescriptor.getName() + " timed out after " +
+ lockInfo.getTimeout() + " " + lockInfo.getTimeUnit();
throw new ConcurrentAccessTimeoutException(msg);
}
} catch(InterruptedException ie) {
String msg = "Serialized access attempt on method " + inv.beanMethod +
" for ejb " + ejbDescriptor.getName() + " was interrupted within " +
+ lockInfo.getTimeout() + " " + lockInfo.getTimeUnit();
ConcurrentAccessException cae = new ConcurrentAccessTimeoutException(msg);
cae.initCause(ie);
throw cae;
}
} else {
sc.getStatefulWriteLock().lock();
}