Is there a reason why EJB classes should be serializable? I heard that this is due to the fact that RMI is used under the hood. I know how RMI (remote method call) works, there is a remote object registered on the server side, and only the remote object is sent to the client to the client, not the whole object.
Thus, in RMI applications, the methods of the remote object must take arguments and return values that can be serialized because they are sent over the network, but not the remote object itself.
source
share