use of org.apache.openejb.jee.JMSDestination in project tomee by apache.
the class ConvertJMSDestinationDefinitions method deploy.
@Override
public AppModule deploy(final AppModule appModule) throws OpenEJBException {
final List<JndiConsumer> jndiConsumers = collectConsumers(appModule);
final KeyedCollection<String, JMSDestination> destinations = new KeyedCollection<>();
for (final JndiConsumer consumer : jndiConsumers) {
if (consumer != null) {
destinations.addAll(consumer.getJMSDestination());
}
}
for (final JMSDestination destination : destinations) {
appModule.getResources().add(toResource(destination));
}
return appModule;
}
Aggregations