Tuesday, November 29, 2011

With EJB 1.1 specs, why is unsetSessionContext() not provided in Session Beans, like unsetEntityContext()

[Quote] ejbRemove() is called for session beans every time the container destroyes the bean. So you can use this method to do the stuff you typically would do in unsetEntityContext(). For entity beans ejbRemove() is only called if the user explicitly deletes the bean. I think that is the reason why the engineers at SUN invented the unsetEntityContext() for this kind of bean. [Quote]
Category:EJB Interview Questions

No comments:

Post a Comment