Java Tutorial - Java Scipt : Entity Beans

Java Tutorial - Java Scipt :

Entity Beans


Entity beans are EJBs that serve conceptually as a component view into persistent storage. This means that they have state and keep that state for their entire life cycle. There are two types of entity beans: container-managed and beanmanaged beans. Container-managed beans have traditionally been scorned (you’ll see why in the next section), but the latest release, CMP 2.1, has a lot to offer enterprise developers. As container-managed persistence (or CMP)
becomes more suitable for real-world applications, the need for bean-managed persistence (or BMP) beans is declining. We’ll take a more detailed look into both types of entity beans in the following sections.