What is different between EJBObjects and EJBLocalObjects ?

Discussions

General J2EE: What is different between EJBObjects and EJBLocalObjects ?

  1. As Title.
    Thanks.
  2. EJBObjects are called using RMI so they call is going through network protocol and EJBLocalObjects can be called by the container locally- if they are running in the same JVM. I realy don't know what reasons are for this (to have different local and remote intergaces fo local and remote call of ejb), but I think, that EJB container can be smart enough to recognize local and remote call even for ejb 1.0 an use adequate instatiotin of objest stubs and decide to use/not use RMI fo method call.