Producer method identifier should include ID of BeanManager
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.4.2
Issue
- Managed Beans defined by a producer method in one WAR visible by and injected into the other WAR. If we have 2 WARs in an EAR and a shared library containing a
@ApplicationScopedcomponent, 1 instance will be shared in both WARs.Are there any plans on improving the situation withWeldsuch thatWeldshould throw an exception that a situation has occurred that's not permitted with@ApplicationScoped?
Resolution
EAR with @ApplicationScoped bean in bundled lib is very often a problematic combination and the Weld 1.1.x behavior on EAP 6 is not consistent in this particular use case. Content from issues.jboss.org is not included.WELD-2050 is created to track this issue and is planned to be in JBoss EAP 6.4 Cumulative Patch (CP) 7 which is in QA testing
This content is not included.This content is not included.https://bugzilla.redhat.com/show_bug.cgi?id=1306551
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.