messageDestinationLink);
} catch (EZBJNDIResolverException e) {
throw new FactoryException("Unable to resolve message destination link '" + messageDestinationLink
+ "' for bean '" + getBeanInfo().getName() + "'.", e);
}
properties.add(new JActivationConfigProperty("destination", jndiName));
logger.info("Message destination link ''{0}'' resolved to ''{1}'' for bean ''{2}''", messageDestinationLink,
jndiName, getBeanInfo().getName());
}
// Check that there is a destination-type, if not, add the default
boolean destinationFound = false;
boolean destinationTypeFound = false;
for (ActivationConfigProperty property : properties) {
if (DESTINATION_TYPE_PROPERTY.equals(property.propertyName())) {
destinationTypeFound = true;
}
if (DESTINATION_PROPERTY.equals(property.propertyName())) {
destinationFound = true;
}
}
if (!destinationTypeFound && destinationFound) {
ActivationConfigProperty jActivationConfigProperty = new JActivationConfigProperty(DESTINATION_TYPE_PROPERTY,
DEFAULT_DESTINATION_TYPE);
properties.add(jActivationConfigProperty);
logger.warn("No ''{0}'' property found in the activation config, adding default value ''{1}'' for bean ''{2}''",
DESTINATION_TYPE_PROPERTY, DEFAULT_DESTINATION_TYPE, getBeanInfo().getName());
}