@XmlTransient public String getName() { return getMessageDestinationRefName(); }
@XmlTransient public String getName() { return getMessageDestinationRefName(); }
@XmlTransient public String getName() { return getMessageDestinationRefName(); }
private String resolveDestinationId(MessageDestinationRef ref, URI moduleUri, LinkResolver<MessageDestination> destinationResolver, Map<MessageDestination,String> destinationTypes) throws OpenEJBException { // skip destination refs without a destination link String link = ref.getMessageDestinationLink(); if (link == null || link.length() == 0) { return null; } // resolve the destination... if we don't find one it is a configuration bug MessageDestination destination = destinationResolver.resolveLink(link, moduleUri); if (destination == null) { throw new OpenEJBException("Message destination " + link + " for message-destination-ref " + ref.getMessageDestinationRefName() + " not found"); } // remember the type of each destination so we can use it to fillin MDBs that don't declare destination type if (ref.getMessageDestinationType() != null && !destinationTypes.containsKey(destination)) { destinationTypes.put(destination, ref.getMessageDestinationType()); } // get the destinationId String destinationId = destination.getMappedName(); if (destinationId == null) destination.getMessageDestinationName(); return destinationId; }
private String resolveDestinationId(final MessageDestinationRef ref, final URI moduleUri, final LinkResolver<MessageDestination> destinationResolver, final Map<MessageDestination, String> destinationTypes) throws OpenEJBException { // skip destination refs without a destination link final String link = ref.getMessageDestinationLink(); if (link == null || link.length() == 0) { return null; } // resolve the destination... if we don't find one it is a configuration bug final MessageDestination destination = destinationResolver.resolveLink(link, moduleUri); if (destination == null) { throw new OpenEJBException("Message destination " + link + " for message-destination-ref " + ref.getMessageDestinationRefName() + " not found"); } // remember the type of each destination so we can use it to fillin MDBs that don't declare destination type if (ref.getMessageDestinationType() != null && !destinationTypes.containsKey(destination)) { destinationTypes.put(destination, ref.getMessageDestinationType()); } // get the destinationId final String destinationId = destination.getMappedName(); if (destinationId == null) { destination.getMessageDestinationName(); } return destinationId; }
private String resolveDestinationId(final MessageDestinationRef ref, final URI moduleUri, final LinkResolver<MessageDestination> destinationResolver, final Map<MessageDestination, String> destinationTypes) throws OpenEJBException { // skip destination refs without a destination link final String link = ref.getMessageDestinationLink(); if (link == null || link.length() == 0) { return null; } // resolve the destination... if we don't find one it is a configuration bug final MessageDestination destination = destinationResolver.resolveLink(link, moduleUri); if (destination == null) { throw new OpenEJBException("Message destination " + link + " for message-destination-ref " + ref.getMessageDestinationRefName() + " not found"); } // remember the type of each destination so we can use it to fillin MDBs that don't declare destination type if (ref.getMessageDestinationType() != null && !destinationTypes.containsKey(destination)) { destinationTypes.put(destination, ref.getMessageDestinationType()); } // get the destinationId final String destinationId = destination.getMappedName(); if (destinationId == null) { destination.getMessageDestinationName(); } return destinationId; }
private List<ResourceEnvReferenceInfo> buildResourceEnvRefInfos(JndiConsumer item) { List<ResourceEnvReferenceInfo> infos = new ArrayList<ResourceEnvReferenceInfo>(); for (ResourceEnvRef res : item.getResourceEnvRef()) { ResourceEnvReferenceInfo info = new ResourceEnvReferenceInfo(); info.resourceEnvRefName = res.getResourceEnvRefName(); info.resourceEnvRefType = res.getResourceEnvRefType(); info.resourceID = res.getMappedName(); info.location = buildLocationInfo(res); info.targets.addAll(buildInjectionInfos(res)); infos.add(info); } for (MessageDestinationRef res : item.getMessageDestinationRef()) { ResourceEnvReferenceInfo info = new ResourceEnvReferenceInfo(); info.resourceEnvRefName = res.getMessageDestinationRefName(); info.resourceEnvRefType = res.getMessageDestinationType(); info.resourceID = res.getMappedName(); info.location = buildLocationInfo(res); info.targets.addAll(buildInjectionInfos(res)); infos.add(info); } return infos; }
@Override public void preProcessWebXmlElement(WebApp webApp, MergeContext mergeContext) throws DeploymentException { for (MessageDestinationRef messageDestinationRef : webApp.getMessageDestinationRef()) { String messageDestinationRefName = messageDestinationRef.getMessageDestinationRefName(); mergeContext.setAttribute(createMessageDestinationRefKey(messageDestinationRefName), new MergeItem(messageDestinationRef, null, ElementSource.WEB_XML)); //Create an attribute tag to indicate whether injectTarget is configured in web.xml file if (!messageDestinationRef.getInjectionTarget().isEmpty()) { mergeContext.setAttribute(createMessageDestinationRefInjectTargetConfiguredInWebXMLKey(messageDestinationRefName), Boolean.TRUE); } for (InjectionTarget injectionTarget : messageDestinationRef.getInjectionTarget()) { mergeContext.setAttribute(createMessageDestinationRefInjectTargetKey(messageDestinationRefName, injectionTarget.getInjectionTargetClass(), injectionTarget.getInjectionTargetName() ), Boolean.TRUE); } } }
info.referenceName = res.getMessageDestinationRefName(); info.resourceEnvRefType = res.getMessageDestinationType(); info.resourceID = res.getMappedName();
info.referenceName = res.getMessageDestinationRefName(); info.resourceEnvRefType = res.getMessageDestinationType(); info.resourceID = res.getMappedName();
final String refName = ref.getMessageDestinationRefName(); ref.setMappedName(MAPPED_NAME_PREFIX + refName);
String refName = ref.getMessageDestinationRefName(); ref.setMappedName(MAPPED_NAME_PREFIX + refName);
final String refName = ref.getMessageDestinationRefName(); ref.setMappedName(MAPPED_NAME_PREFIX + refName);
public void merge(WebFragment webFragment, WebApp webApp, MergeContext mergeContext) throws DeploymentException { for (MessageDestinationRef srcMessageDestinationRef : webFragment.getMessageDestinationRef()) { String messageDestinationRefName = srcMessageDestinationRef.getMessageDestinationRefName(); String messageDestinationRefKey = createMessageDestinationRefKey(messageDestinationRefName); MergeItem mergeItem = (MergeItem) mergeContext.getAttribute(messageDestinationRefKey);