/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return super.getMappedName(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return super.getMappedName(); }
@Override @XmlElement(name="jndi-name") public String getMappedName() { return super.getMappedName(); }
String mappedName = bean.getMappedName(); if(mappedName != null) mappedNameMap.put(ejbPath, mappedName);
private void addSimpleJndiAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean) throws ClassNotFoundException { RemoteBindingImpl remoteBinding = null; String jndiName = enterpriseBean.getMappedName(); if (jndiName != null) { remoteBinding = new RemoteBindingImpl(); remoteBinding.setJndiBinding(jndiName); addClassAnnotation(container, RemoteBinding.class, remoteBinding); } if (remoteBinding != null) { RemoteBinding existingBinding = ejbClass.getAnnotation(RemoteBinding.class); if (existingBinding != null) remoteBinding.merge(existingBinding); addClassAnnotation(container, RemoteBinding.class, remoteBinding); } }
String mappedName = summary.getBeanMD().getMappedName(); if (md.isSession())
DefaultJndiBindingPolicy defaultPolicy) String baseJndiName = getMappedName(); if (baseJndiName == null) baseJndiName = determineJndiName();
baseJndiName = beanMD.getMappedName(); if(baseJndiName == null) baseJndiName = beanMD.determineJndiName();
String setMappedName = md.getMappedName(); if (setMappedName != null && setMappedName.trim().length() > 0) mappedName = md.getMappedName(); String mappedName = md.getMappedName(); if (mappedName == null || mappedName.length() == 0)
private void addDescriptorAnnotations(EJBContainer container, JBossEnterpriseBeanMetaData enterpriseBean, String ejbName, boolean isStateful) throws Exception { // EJBTHREE-936: TODO: another wicked patch: jndi-name might mean local-jndi-name // TODO: Make sure this is done after addInterfaces! if(enterpriseBean instanceof JBossGenericBeanMetaData) { Class<?>[] remoteAndBusinessRemoteInterfaces = ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(container); if(remoteAndBusinessRemoteInterfaces.length == 0) { enterpriseBean.setLocalJndiName(enterpriseBean.getMappedName()); enterpriseBean.setMappedName(null); } } addTransactionAnnotations(container, enterpriseBean, ejbName); addAssemblyAnnotations(container, enterpriseBean, ejbName); addSecurityAnnotations(container, enterpriseBean, ejbName); addEjbAnnotations(container, enterpriseBean); addEjb21Annotations(container, isStateful); addWebServiceAnnotations(container, enterpriseBean); }
else if(original != null && original.getName() != null) setName(original.getName()); if(override != null && override.getMappedName() != null) setMappedName(override.getMappedName()); else if(original != null && original.getMappedName() != null) setMappedName(original.getMappedName());
else if(original != null && original.getName() != null) setName(original.getName()); if(override != null && override.getMappedName() != null) setMappedName(override.getMappedName()); else if(original != null && original.getMappedName() != null) setMappedName(original.getMappedName());