/** * Get a message destination by name * * @param name the name * @return the destination * @throws IllegalArgumentException for a null name */ public MessageDestinationMetaData getMessageDestinationMetaData(String name) { org.jboss.metadata.javaee.spec.MessageDestinationMetaData destination = getDelegate().getMessageDestination(name); if (destination == null) return null; return new MessageDestinationMetaData(destination); }
/** * Get a message destination by name * * @param name the name * @return the destination * @throws IllegalArgumentException for a null name */ public MessageDestinationMetaData getMessageDestinationMetaData(String name) { org.jboss.metadata.javaee.spec.MessageDestinationMetaData destination = getDelegate().getMessageDestination(name); if (destination == null) return null; return new MessageDestinationMetaData(destination); }
return appMD.getAssemblyDescriptor().getMessageDestination(destinationName);
MessageDestinationMetaData mdMD = appMD.getAssemblyDescriptor().getMessageDestination(link); if (mdMD != null) return mdMD;
private void addMessageDestinationAnnotations(EJBContainer container, MessageDestinationReferencesMetaData refs) { if(refs == null) return; for(MessageDestinationReferenceMetaData ref : refs) { if (ref.getMappedName() == null || ref.getMappedName().equals("")) { JBossAssemblyDescriptorMetaData descriptor = dd.getAssemblyDescriptor(); if (descriptor != null) { MessageDestinationMetaData destination = descriptor.getMessageDestination(ref.getLink()); if (destination != null) { ref.setMappedName(destination.getJndiName()); } } } } }