this.container = container;
trace = log.isTraceEnabled();
try
{
InitialContext ctx = new InitialContext();
EntityLockMonitor elm = (EntityLockMonitor) ctx.lookup(EntityLockMonitor.JNDI_NAME);
String jndiName = container.getBeanMetaData().getContainerObjectNameJndiName();
monitor = elm.getEntityLockMonitor(jndiName);
}
catch (Exception ignored)
{
// Ignore the lack of an EntityLockMonitor
}