/** * deploy proxy for the resource * @param resourceInfo jndi name with which the resource need to be deployed * @param resource config object of the resource */ public void deployResource( ResourceInfo resourceInfo, Resource resource){ try{ bindResource(resourceInfo, resource); }catch(NamingException ne){ Object[] params = {resourceInfo, ne}; logger.log(Level.SEVERE,"resources.resources-binder.bind-resource-failed", params); } }
if(Boolean.valueOf(ref.getEnabled()) && Boolean.valueOf(resource.getEnabled())){ ResourceInfo resourceInfo = new ResourceInfo(resource.getJndiName()); resourcesBinder.deployResource(resourceInfo, resource);
if(isBindableResourceEnabled(bindableResource.getJndiName())){ ResourceInfo resourceInfo = new ResourceInfo(bindableResource.getJndiName()); resourcesBinder.deployResource(resourceInfo, resource);
ResourceInfo resourceInfo = new ResourceInfo(bindableResource.getJndiName(), applicationName, moduleName); resourcesBinder.deployResource(resourceInfo, resource); } else if (resource instanceof ResourcePool) {
if(embedded){ if(isEmbeddedRarResource(configBeanResource, configBeanResources) == TriState.TRUE){ resourcesBinder.deployResource(resourceInfo, resource); resourcesBinder.deployResource(resourceInfo, resource);