Architecture
Enterprise beans
Two main types (described in the next section): entity beans and session beans
Implement the distributed services of the application
Use a "home interface" and "remote interface" to handle distributed connections and interact with the EJB container.
Home interface
Defines lifecycle methods, such as those used for creating new bean instances, removing beans, finding beans, and managing a bean's persistent state in a database.
Called by both the EJB container and client objects
Remote interface
Defines the actual application-specific methods provided by the bean
Called by client objects