/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getMappedName(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getMappedName(); }
/** * Get the jndi name * * @return the jndi name */ public String getJNDIName() { return getDelegate().getMappedName(); } }
/** * Get the jndi name * * @return the jndi name */ public String getJNDIName() { return getDelegate().getMappedName(); } }
private static String findMessageDestination(DeploymentUnit deploymentUnit, MessageDestinationsMetaData destinations, String name) { if(destinations == null) return null; MessageDestinationMetaData destination = destinations.get(name); if(destination != null) { String jndiName = destination.getMappedName(); if(jndiName != null) return jndiName; else throw new IllegalStateException("Message destination " + name + " in " + deploymentUnit + " does not define a mapped name"); } return null; }
for(MessageDestinationMetaData dest : msgDestinations) String mappedName = dest.getMappedName(); String destName = dest.getMessageDestinationName(); if(mappedName == null || mappedName.length() == 0)
protected void resolveMsgRefs(DeploymentUnit unit, MessageDestinationReferencesMetaData msgRefs, List<String> unresolvedRefs) { if(msgRefs == null) return; ArrayList<MessageDestinationMetaData> searched = new ArrayList<MessageDestinationMetaData>(); for(MessageDestinationReferenceMetaData ref : msgRefs) { String mappedName = ref.getMappedName(); if(mappedName == null || mappedName.length() == 0) { String link = ref.getLink(); MessageDestinationMetaData target = null; if(link != null) target = findMessageDestination(unit, link, searched); if(target == null) unresolvedRefs.add(ref.getMessageDestinationRefName()+"/message-destination-ref/"+link + " available: " + searched); else mappedName = target.getMappedName(); } ref.setResolvedJndiName(mappedName); } }
if(md.getMappedName() == null)
if(md.getMappedName() == null)
if(md.getMappedName() == null)