* @ActivationConfigProperty
*/
final MessageDrivenBean mdb = (MessageDrivenBean) bean;
final MessageDriven messageDriven = clazz.getAnnotation(MessageDriven.class);
if (messageDriven != null) {
ActivationConfig activationConfig = mdb.getActivationConfig();
if (activationConfig == null) {
activationConfig = new ActivationConfig();
}
if (!messageDriven.mappedName().isEmpty()) {
if (mdb.getActivationConfig() == null) {
mdb.setActivationConfig(activationConfig);
}
if (!activationConfig.toProperties().containsKey("destinationType")) {
activationConfig.addProperty("destinationType", Queue.class.getName());
}
activationConfig.addProperty("destination", messageDriven.mappedName());
}
final ActivationConfigProperty[] configProperties = messageDriven.activationConfig();
if (configProperties != null) {
if (mdb.getActivationConfig() == null) {
mdb.setActivationConfig(activationConfig);
}
final Properties properties = activationConfig.toProperties();
for (final ActivationConfigProperty property : configProperties) {
if (!properties.containsKey(property.propertyName())) {
activationConfig.addProperty(property.propertyName(), property.propertyValue());
}
}
}
if (mdb.getMessagingType() == null) {