} else if (msgDestReferencer.ownedByMessageDestinationRef() &&
msgDestReferencer.getMessageDestinationRefOwner(
).getJndiName() != null) {
return;
} else {
MessageDestinationDescriptor msgDest =
msgDestReferencer.resolveLinkName();
if( msgDest == null ) {
String linkName =
msgDestReferencer.getMessageDestinationLinkName();
DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment.backend.invalidDescriptorMappingFailure",
new Object[] {"message-destination", linkName});
} else {
if (msgDestReferencer instanceof MessageDestinationReferenceDescriptor) {
((MessageDestinationReferenceDescriptor)msgDestReferencer).setJndiName(msgDest.getJndiName());
}
}
}
}