-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Weld setting emptyBeansXmlModeAll in Glassfish 7 #25034
Comments
Good point, we should indeed do this. We mainly use the weld-osgi-bundle, and use Weld in deep integration mode, where large parts of the Weld code are replaced / augmented by GlassFish specific code. Most of that can be found here: https://github.com/eclipse-ee4j/glassfish/tree/master/appserver/web/weld-integration/src/main/java/org/glassfish/weld |
FTR, I added a comment to the Weld issue - EE integrators fully control the bootstrap of Weld so they need to have their own config option for this. WFLY already supports it. |
To be exact, as I stated in the Weld issue, the reproducer has technically invalid That being said, GF is still required to provide a switch for legacy behavior of actually empty beans.xml file. |
Yes, i remember we had this on the TODO somewhere back then, but it was missed. |
Impossible to set Weld configuration setting emptyBeansXmlModeAll
Environment Details
Problem Description
Glassfish 7 has Weld 5.1.2 as a CDI implementation. Weld has a feature which simplifies migration from CDI 3.0 (Glassfish 6) to CDI 4.0 (Glassfish 7). But this feature is inacceessible in Glassfish 7.
Steps to reproduce
Project with demonstartion of problem
Impact of Issue
Webapp project contains CDI-modules in separate jars (located in WEB-INF/lib). It is necessary to add
bean-discovery-mode="all"
into beans.xml for each module. Modules are developed by different providers and in some cases changes cannot be done. This Weld feature gives a possibility to make changes only in one webapp, not in each module. Absence of support this Weld feature blocks a migration into Glassfish 7.PS.
The text was updated successfully, but these errors were encountered: