{
final Context ctx = (Context)container.getContext().lookup(EJB3_JNDI_PREFIX);
String ejbName = container.getComponentName();
EnvironmentEntriesMetaData ejbEnvEntries = jebMDs.get(ejbName).getEnvironmentEntries();
injectionMD.addAll(buildInjectionMetaData(ejbEnvEntries));
Endpoint endpoint = dep.getService().getEndpointByName(ejbName);
InjectionsMetaData injectionsMD = new InjectionsMetaData(injectionMD, resolvers, ctx);
endpoint.addAttachment(InjectionsMetaData.class, injectionsMD);
}
}
}
}
catch (NamingException ne)