EJB container can contain of one or more than one beans and the responsibility of container is to provide the required services according to the specification of each beans you request. It also provides numerous services to support the enterprise java beans such as life cycle management, naming, transaction managements, persistence and security. The EJB container offers four different services to the developer:• SecurityIt designed to confirm or ensure that only authorized users can access resources.• Transaction ManagementsBean-managed transactions and Container-managed transactions are two type of transaction management which provided by EJB container to ensure that all database updates procure successfully.• Life Cycle Management EJB container provide JRun application that service the server to deploy and build server-side applications. The number of bean available in the server are automatically increased and decreased by JRun applications.
So, there will be no that much load on the server.• Session ManagementThe state preserves by JRun server for entity beans and session beans. The session beans state will be preserved by activation callback methods and passivation, whereas the entity beans state will be preserved by callback methods of entity beans.
Enterprise JavaBean:Enterprise JavaBeans is a server-side component. It implements the business logic of an enterprise apps. It lives in a EJB container and distributed over secure, network and transaction.