use of com.sun.enterprise.deployment.types.MessageDestinationReferenceContainer in project Payara by payara.
the class MessageDestinationRefNode method setElementValue.
@Override
public void setElementValue(XMLElement element, String value) {
if (TagNames.MESSAGE_DESTINATION_REFERENCE_NAME.equals(element.getQName())) {
XMLNode parentNode = getParentNode();
Object parentDesc = null;
// in case of web
if (parentNode.getDescriptor() instanceof WebBundleDescriptor) {
parentDesc = parentNode.getDescriptor();
// in case of appclient and ejb
} else {
parentDesc = getParentNode().getDescriptor();
}
if (parentDesc instanceof MessageDestinationReferenceContainer) {
try {
descriptor = ((MessageDestinationReferenceContainer) parentDesc).getMessageDestinationReferenceByName(value);
} catch (IllegalArgumentException iae) {
DOLUtils.getDefaultLogger().warning(iae.getMessage());
}
}
} else
super.setElementValue(element, value);
}
Aggregations