/** * Get the resource name * * @return the resource name */ public String getResourceName() { String name = getName(); if (name == null) return getRefName(); return name; }
/** * Create a new ResourceRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static ResourceRefMetaData create(ResourceReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new ResourceRefMetaData(delegate); }
/** * Get the containerAuth. * * @return the containerAuth. */ public boolean isContainerAuth() { return getDelegate().isContainerAuth(); }
String resourceName = ref.getResourceName(); String finalName = application.getResourceByName(resourceName); String resType = ref.getType(); finalName = ref.getJndiName(); if (ref.getType().equals("javax.sql.DataSource")) log.warn("No resource manager found for " + ref.getResourceName()); continue; if (ref.getResURL() != null) log.debug("Binding URL: " + ref.getRefName() + " to JDNI ENC as: " + ref.getResURL()); URL resURL = new URL(ref.getResURL()); Util.bind(envCtx, ref.getRefName(), resURL); log.debug("Binding URL: " + ref.getRefName() + " to: " + finalName); Object bind = null; if (ref.getJndiName() != null) Util.bind(envCtx, ref.getRefName(), bind); log.debug("Binding resource manager: " + ref.getRefName() + " to JDNI ENC as: " + finalName); Util.bind(envCtx, ref.getRefName(), new LinkRef(finalName));
jndiName = resRefMetaData.getJndiName(); if (jndiName == null) jndiName = appMetaData.getResourceByName(resRefMetaData.getResourceName()); if (jndiName != null && resRefMetaData.isShareable() == false)
/** * Get the name. * * @return the name. */ public String getName() { return getDelegate().getName(); }
/** * Get the resource name * * @return the resource name */ public String getResourceName() { String name = getName(); if (name == null) return getRefName(); return name; }
/** * Create a new ResourceRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static ResourceRefMetaData create(ResourceReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new ResourceRefMetaData(delegate); }
/** * Get the refName. * * @return the refName. */ public String getRefName() { return getDelegate().getName(); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); } }
/** * Get the isShareable. * * @return the isShareable. */ public boolean isShareable() { return getDelegate().isShareable(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getDelegate().getMappedName(); }
/** * Get the name. * * @return the name. */ public String getName() { return getDelegate().getName(); }
/** * Get the resURL. * * @return the resURL. */ public String getResURL() { return getDelegate().getResUrl(); }
/** * Get the isShareable. * * @return the isShareable. */ public boolean isShareable() { return getDelegate().isShareable(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getDelegate().getMappedName(); }
/** * Get the resURL. * * @return the resURL. */ public String getResURL() { return getDelegate().getResUrl(); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); } }
/** * Get the containerAuth. * * @return the containerAuth. */ public boolean isContainerAuth() { return getDelegate().isContainerAuth(); }
/** * Get the refName. * * @return the refName. */ public String getRefName() { return getDelegate().getName(); }