/** * Store resources in ResourceRefDescriptor. */ private void parseResources(ResourceReferenceDescriptor resRef, JndiNameEnvironment env, AppResources appResources) { resRef.checkType(); String name = getLogicalJNDIName(resRef.getName(), env); String type = resRef.getType(); String jndiName = resRef.getJndiName(); AppResource resRefResource = new AppResource(name, jndiName, type, env, true); if (resRef.isURLResource()) { if (jndiName != null && !(jndiName.startsWith(ResourceConstants.JAVA_SCOPE_PREFIX))) { try { // for jndi-name like "http://localhost:8080/index.html" new java.net.URL(jndiName); resRefResource.noValidation(); } catch (MalformedURLException e) { // If jndi-name is not an actual url, we might want to lookup the name } } } if (resRef.isWebServiceContext()) resRefResource.noValidation(); appResources.store(resRefResource); }
if (resourceRef.isURLResource()) { if(physicalJndiName.startsWith(JAVA_GLOBAL_PREFIX) || physicalJndiName.startsWith(JAVA_APP_PREFIX) ||
if (resourceRef.isURLResource()) { if(physicalJndiName.startsWith(JAVA_GLOBAL_PREFIX) || physicalJndiName.startsWith(JAVA_APP_PREFIX) ||