-
Notifications
You must be signed in to change notification settings - Fork 599
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
Jakarta EE 9: Enterprise Beans 4.0 - reduce need for PortableRemoteObject.narrow() #16238
Comments
I did a proof of concept for this as follows: Change the return in
to this
This allowed many FAT that perform JNDI lookups of EJBHome interfaces to work without performing a PRO.narrow(). 1 - Note: If you remove the calls to To find a more appropriate place to make this enhancement, I recommend looking at
The EJB 3.x API interfaces will call |
Some FAT for the EJB 3.x APIs are unnecessarily performing PortableRemoteObject.narrow() calls; remove those calls to ensure compliance with the specification.
Issue #16238: Remove PRO.narrow from EJB3 FAT
Some FAT for the EJB 3.x APIs are unnecessarily performing PortableRemoteObject.narrow() calls; remove those calls to ensure compliance with the specification.
done |
The EJB 2.x APIs currently require the use of PortableRemoteObject.narrow() after performing a JNDI lookup of the EJBHome remote interface. As long as the specific EJBHome interface is available on the client classpath, the use of PortableRemoteObject.narrow() should not be required by the Liberty implementation. To maintain application portability, an EJB 2.x API (i.e. Homes) application should still include the call.
In addition, several of the EJB FAT are unnecessarily performing a PRO.narrow() for EJB 3.x API interfaces. These should be removed to ensure the FAT is testing compliance with the specification. Pull request #16272 is an initial removal of the obvious unnecessary use of PRO.narrow, but there are likely others which are not as obvious because they are using utility methods to perform the lookups.
The text was updated successfully, but these errors were encountered: