private boolean isOpenEjb(final NamingResourcesImpl naming, final String name) { final ContextResource resource = naming.findResource(name); return resource != null && ResourceFactory.class.getName().equals(resource.getProperty("factory")); }
return cr.getType(); } else { value = (String) cr.getProperty(name); if (value == null) { throw new AttributeNotFoundException
return cr.getType(); } else { value = (String) cr.getProperty(name); if (value == null) { throw new AttributeNotFoundException
for (final ContextResource resource : foundResources) { if ("javax.sql.DataSource".equals(resource.getType()) && !ResourceFactory.class.getName().equals(resource.getProperty(Constants.FACTORY))) { String jndiName = (String) resource.getProperty("mappedName"); if (jndiName == null) { jndiName = resource.getName();
return (cr.getType()); } else { value = (String) cr.getProperty(name); if (value == null) { throw new AttributeNotFoundException
while (params.hasNext()) { String paramName = params.next(); String paramValue = (String) resource.getProperty(paramName); StringRefAddr refAddr = new StringRefAddr(paramName, paramValue); ref.add(refAddr);
while (params.hasNext()) { String paramName = params.next(); String paramValue = (String) resource.getProperty(paramName); StringRefAddr refAddr = new StringRefAddr(paramName, paramValue); ref.add(refAddr);
while (params.hasNext()) { String paramName = params.next(); String paramValue = (String) resource.getProperty(paramName); StringRefAddr refAddr = new StringRefAddr(paramName, paramValue); ref.add(refAddr);
appendElement(sb, INDENT4, "res-sharing-scope", resourceRef.getScope()); appendElement(sb, INDENT4, "mapped-name", resourceRef.getProperty("mappedName")); for (InjectionTarget target : resourceRef.getInjectionTargets()) { sb.append(" <injection-target>\n");
appendElement(sb, INDENT4, "res-sharing-scope", resourceRef.getScope()); appendElement(sb, INDENT4, "mapped-name", resourceRef.getProperty("mappedName")); for (InjectionTarget target : resourceRef.getInjectionTargets()) { sb.append(" <injection-target>\n");