Use the following guidelines when designing and developing enterprise beans.
Local calls avoid the overhead of RMI/IIOP and use pass-by-reference semantics instead of pass-by-value. For each call, the caller and callee beans share the state of arguments. EJB 2.x beans can have both a local and remote interface but more typically have one or the other.
Related tasks
Task overview: Using enterprise beans in applications