This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When the current API is used for listing data sources in larger projects, the performance might be really pure. The problem is that the DatasourceConfiguration.findDatasourceJndiName(String referenceName) DatasourceConfiguration.findDatasourceJndiNameForEjb(String ejbName, String referenceName) methods are called for each reference name and thus the server plugin has to parse its server-specific descriptors multiple times. If a list of references would be passed to the plugin, the plugin would need to parse the date only once.
I was looking at how to make group versions of those two methods, but it turned out that the change won't be trivial and the API would become quite complicated. We would have to introduce new interfaces which would represent mappings between 1) <reference name, jndi name> 2) <ejb name, reference name> 3) <reference name, ejb name, reference name> Since the change is not trivial and we don't have any proof of a real performance issue we should get some performance data before doing any premature optimization. TM -> 6.0
So is this really a defect? IMO this should be an enhancement by default, and we will change it to defect only if a real performance problem is discovered.
I don't think it is an enhancement, there is either a performance problem or the issue is invalid. We should definitely make the measurements before closing the issue.
I have generated 1.4 EE ear project with 100 session beans. These beans have defined various data sources. When i tried Use Database action from Enterprise Resources menu... i didn't find any performance issue.
Closing this issue as INVALID since we have no evidence of a significant performance problem. It is also quite unlikely that someone will have more than just a few resource references defined in one module.