Skip to content
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

Fish 6759 search cdi manager via jndi #7

Conversation

aubi
Copy link

@aubi aubi commented Sep 25, 2023

Description

Search for CDI doesn't work well in EAR packaging.
The current way searches through all modules, which can find the calling class. And because EJB module sees the WAR classes, it may be (and often is) chosen instead of the WAR, causing further CDI search failures.

This change mimics behavior of version 3, which uses tries to find "java:comp/BeanManager" in JNDI, which works more reliably.

I left a comment, so future change doesn't return to CDI.current().

@aubi aubi merged commit ad1075a into payara:security-soteria-1.1.payara-maintenance Sep 25, 2023
1 check passed
@aubi aubi deleted the FISH-6759-search-cdi-manager-via-jndi branch September 25, 2023 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants