1. In case of remote interface, objects are passed by value or a copy is made
2. In case of local interface, objects are passeed by reference.
What if we use remote interface on the same VM. Would the object still passed by value.
Secondly in Zaikin notes I read the following lines
Non-remote objects must be passed by value.
The
EJB container is not allowed to pass non-remote objects by reference on inter-EJB invocations when the calling and called enterprise beans are collocated in the same JVM.
Should'nt the opposite be true in this case. Non-remote objects or local objects must be passed on reference??
SCJP 1.4, SCWCD 1.4, SCBCD 1.5, TOGAF 9, Comptia Cloud+