Re: why not unsetSessionContext()?
"Vijayan Sampath" <[email protected]> Thu, 4 Apr 2002 10:44:24 +0530
| Newsgroups | gmane.comp.java.ejb.general |
|---|---|
| Message-ID | <004201c1db97$95f01b50$720aa8c0@vijayan> |
> There is always unsetEntityContext() for entity bean, but not unsetSessionContext() for Session Bean. unsetEntityContext() is used to remove the bean 'instance'. In session beans ejbRemove() does the same job, whereas ejbRemove() in entity beans removes the entity it represents from the persistant storage being used. For a better explanation, I would suggest that you read the chapters that explain the lifecycles of Entity and Session beans in the EJB book by Monson-Haefel. Vijayan -- Expect to bleed a lot if you are on the cutting edge.