}
ActivationConfigPropertyImpl[] propsArray = new ActivationConfigPropertyImpl[properties
.size()];
properties.toArray(propsArray);
MessageDrivenImpl annotation = new MessageDrivenImpl(ejbName,
propsArray);
if (mdb.getMessagingType() != null)
{
try
{
annotation.setMessageListenerInterface(container
.getClassloader().loadClass(mdb.getMessagingType()));
} catch (ClassNotFoundException e)
{
throw new RuntimeException(e);
}
}
if (isAnnotatedBean())
{
annotation.merge(ejbClass.getAnnotation(MessageDriven.class));
}
addClassAnnotation(container, MessageDriven.class, annotation);
addDefaultActivationConfig(container, mdb);