@XmlTransient public String getType() { return getMessageDestinationType(); }
@XmlTransient public String getType() { return getMessageDestinationType(); }
@XmlTransient public String getType() { return getMessageDestinationType(); }
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; }
final ResourceEnvReferenceInfo info = new ResourceEnvReferenceInfo(); info.referenceName = res.getMessageDestinationRefName(); info.resourceEnvRefType = res.getMessageDestinationType(); info.resourceID = res.getMappedName(); info.location = buildLocationInfo(res);
final ResourceEnvReferenceInfo info = new ResourceEnvReferenceInfo(); info.referenceName = res.getMessageDestinationRefName(); info.resourceEnvRefType = res.getMessageDestinationType(); info.resourceID = res.getMappedName(); info.location = buildLocationInfo(res);
linkName = name; String type = getStringValue(messageDestinationRef.getMessageDestinationType()); type = inferAndCheckType(module, bundle, messageDestinationRef.getInjectionTarget(), name, type);