In EJB 2.0, What is an Entity Bean's local interfaces? How do I define them?

Robert Castaneda

In EJB 2.0, An Entity Bean can have a set of Local interfaces for use by clients within the same JVM (known as collocated clients). The local interfaces extend the following interfaces:

  • javax.ejb.EJBLocalObject - for the Object interface
  • javax.ejb.EJBLocalHome - for the Home interface

Arguments between these interfaces and clients calling them are passed by reference.