{
log.warn("ejb link '" + ejbLink + "' is relative, but no deployment scope found");
return null;
}
String relativePath = ejbLink.substring(0, hashIndex);
Ejb3Deployment dep = deploymentScope.findRelativeDeployment(relativePath);
if (dep == null)
{
log.warn("can't find a deployment for path '" + relativePath + "' of ejb link '" + ejbLink + "'");
return null;
}
String ejbName = ejbLink.substring(hashIndex + 1);
return dep.getEjbContainer(ejbName, businessIntf);
}
// look internally
EJBContainer ejb = searchDeploymentInternally(ejbLink, businessIntf);
if (ejb != null) return ejb;
for (Object obj : Ejb3Registry.getContainers())