Are remote EJB calls made from the same application server always optimized as local calls in memory and are serialization of the data missed in this scenario?
In other words, is it correct to work with remote EJBs all the time, thus achieving decoupling between application components, even if two + EJB modules are deployed in the same container? I am using Glassfish.
Also, if I need to perform a search while working with remote EJBs (I donβt know the JNDI name of the EJB until runtime), which is the best way to cache calls using as little as possible the overhead for the existing EJB infrastructure provided by the application server (so that no additional libraries like Guice are just what Glassfish already offers).
source
share