Web host forum - Introduction to Entity Beans 135 Relationship between remove()
Saturday, January 19th, 2008Introduction to Entity Beans 135 Relationship between remove() and ejbRemove(). Note that remove() can be called on either the home object or the EJB object. (Diagram happens to assume bean-managed persistence.) EJB Container/Server Entity Bean Instance Home Object EJB Object Client Code 1: remove() 2: ejbRemove() Database Entity Bean Data 3: Remove Database Data 1: remove() 2: ejbRemove() Figure 6.7 Destroying an entity bean s data representation. Note that ejbRemove() does not mean the in-memory entity bean instance is actually going to be destroyed; ejbRemove() destroys only database data and makes the entity bean inaccessible to the client. The bean instance can be recycled by the container to handle a different database data instance, such as a bank account bean representing different bank accounts. ejbRemove() is a required method of all entity beans, and it takes no parameters. There is only one form of ejbRemove(). With entity beans, ejbRemove() is not called if the client times out because the lifetime of an entity bean is longer than the client s session.
You need web hosting, easy to use web template and great support. What else could I ask for?All of our reseller accounts include free web hosting templates just check web hosting templates for more information.