// If .war contains EJBs, .war-defined dependencies have already been bound by
// EjbDeployer, so just add the dependencies from outside the .war
if( webBundleContainsEjbs ) {
namingMgr.addToComponentNamespace(webBundleDescriptor, envProps, resRefs);
} else {
namingMgr.bindToComponentNamespace(webBundleDescriptor);
}
String componentId = namingMgr.getComponentEnvId(webBundleDescriptor);
((WebModule) context).setComponentId(componentId);
} catch (NamingException ne) {