Hi Everyone, What's the purpose of the org.apache.openejb.config.CompManagedBean ? I'm asking in the context of TOMEE-2053.
I have a @DataSourceDefinition with some attributes which should be overrriden by ejb-jar.xml. Everithing works great, with the sole exception of CompManagedBean. It seems that it "aggregates" the annotations from the other beans, but as it's artificially added to the ejb-jar by openejb, it does not have an entry in the ejb-jar.xml. Hence when the AnnotationDeployer processes the DataSourceDefinition annotation, if never finds an exisitin datasource definition in the ejb-jar.xml for it. This in turn makes the annotation deployer to add a datasource with wrong configuration to the AppModule's ejb-jar. So far so good, but later, the ConvertDataSourceDefinitions deployer collects all datasources from all JndiConsumers, so it collects the invalid definition as well and adds it to the AppModule's resources. And this breaks the application startup. Kind regards, Svetlin