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

Fixes classloading of the generated classes for the shared EAR libraries #25301

Merged
merged 3 commits into from
Dec 29, 2024

Conversation

avpinchuk
Copy link
Contributor

@avpinchuk avpinchuk commented Dec 28, 2024

Fixes #25054.

Uses MethodHandles to define generated remote EJB proxy only if the anchor class (remote EJB interface) in the same package and the anchor class is visible to the application classloader (this may not be true for the Embedded GF).

Uses application classloader in all other cases.

@avpinchuk avpinchuk marked this pull request as ready for review December 29, 2024 20:03
@avpinchuk avpinchuk self-assigned this Dec 29, 2024
@avpinchuk avpinchuk added the bug Something isn't working label Dec 29, 2024
@avpinchuk avpinchuk added this to the 7.0.21 milestone Dec 29, 2024
@dmatej dmatej merged commit c7dbae2 into eclipse-ee4j:master Dec 29, 2024
3 checks passed
@avpinchuk avpinchuk deleted the ejb-classloading branch December 29, 2024 22:22
@chicko12345
Copy link

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployment of EAR with Remote EJBs doesn't work
5 participants