/** * bind proxy for the resource * @param resource config object of the resource * @param jndiName jndi name with which the resource need to be deployed * @throws NamingException */ private void bindResource(ResourceInfo resourceInfo, Resource resource) throws NamingException { ResourceProxy proxy = genericResourceProxy.getComponent(ResourceProxy.class); proxy.setResource(resource); proxy.setResourceInfo(resourceInfo); resourceNamingService.publishObject(resourceInfo, proxy, true); } }