this.logger.error("Unable to bind persistence-unit in ENC", e);
}
}
// EJBs
EZBJNDIResolver jndiResolver = this.injectionHolder.getJNDIResolver();
if (jndiResolver != null) {
for (IENCBinding<IJEjbEJB> binding : this.encBindingHolder.getEJBBindings()) {
String encName = binding.getName();
IJEjbEJB jEjbEJB = binding.getValue();
String interfaceName = jEjbEJB.getBeanInterface();
String beanName = jEjbEJB.getBeanName();
String jndiName;
try {
jndiName = jndiResolver.getEJBJNDIUniqueName(interfaceName, beanName);
// Bind a link to this JNDI name
try {
createSubcontexts(envCtx, encName);
envCtx.rebind(encName, new LinkRef(jndiName));