134 Chapter 6 Relationship between create() and ejbCreate().

134 Chapter 6 Relationship between create() and ejbCreate(). (Diagram leaves out a few minor steps and happens to assume bean-managed persistence.) EJB Container/Server 3: Create Database Data Entity Bean Instance Home Object EJB Object 2: ejbCreate() Database Entity Bean Data 5: Create EJB Object 4: Return Primary Key Figure 6.6 Creating an entity bean and EJB object. To destroy an entity bean s data in a database, the client must call remove() on the EJB object or home object. This method causes the container to issue an ejbRemove() call on the bean. Figure 6.7 shows the relationship between remove() and ejbRemove(). Note that remove() can be called on either the home object or the EJB object. Figure 6.7 happens to assume bean-managed persistence. 1: create() Client Code 6: Return EJB Object
Do you want something as professional as you are? Well, we are, but our plans are even better, please check Web Hosting SSH and look why we are the best.

Leave a Reply