Component-View / Container Responsibilities
The responsibilities of container are:
- implementing persistence for entity beans with container-managed persistence,
- providing javax.ejb.SessionContext for session beans and javax.ejb.EntityContext for entity beans. Context interfaces are used to obtain information from the container,
- providing the JNDI context to keep the environment information for beans, and
- handling transaction, security, and exceptions.
Beans are packaged and deployed with an ejb-jar file. This file includes class files for the implementation, remote interfaces and home interfaces. An ejb-jar file includes XML deployment descriptor defining the structural and application assembly information about the beans in the file.