code: private void configureJMSDestinations(List<JMSDestination> jmsDestinations) {
          Map<String, ConfigItem<JMSDestination>> jmsDestinationConfigItemMap = configurator.getConfigItemMap(JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName());
          
          for (JMSDestination jmsDestination : jmsDestinations) {
              String name = jmsDestination.getName();
              if (name == null) {
                  continue;
              }
              ConfigItem<JMSDestination> existedCF = jmsDestinationConfigItemMap.get(name);
              if (existedCF == null) {
                  jmsDestinationConfigItemMap.put(name, createConfigItem(jmsDestination, JMS_DESTINATION_COMPARATOR));
                  webAppConfiguration.addRef(JNDIEnvironmentRefType.JMSDestination, jmsDestination);
              } else {
                  if (existedCF.getSource() == ConfigSource.WEB_XML && configurator.getConfigSource() == ConfigSource.WEB_FRAGMENT) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "{0}.{1} with value {2}  is configured in web.xml, the value {3} from web-fragment.xml in {4} is ignored", JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName(), "name",
                                   existedCF.getValue(), name, configurator.getLibraryURI());
                      }
                  } else if (existedCF.getSource() == ConfigSource.WEB_FRAGMENT && configurator.getConfigSource() == ConfigSource.WEB_FRAGMENT
                             && !existedCF.compareValue(jmsDestination)) {
                      configurator.addErrorMessage(nls.getFormattedMessage("CONFLICT_JMS_DESTINATION_REFERENCE_BETWEEN_WEB_FRAGMENT_XML",
                                                                           new Object[] { name,
                                                                                          existedCF.getLibraryURI(),
                                                                                         this.configurator.getLibraryURI() },
                                                                           "Two "+JNDIEnvironmentRefType.JMSConnectionFactory.getXMLElementName()+" configurations with the same name {0} found in the web-fragment.xml of {1} and {2}."));
                  }
              }
          }
      }
docs: To configure JMS Destinations
  @param jmsDestinations