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(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; }
String destinationId = destination.getMappedName(); if (destinationId == null) {
String destinationId = destination.getMappedName(); if (destinationId == null) {
String destinationId = destination.getMappedName(); if (destinationId == null) {