Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Bean

 
Sagar Kar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why does EntityBean interface has an unsetEntityContext() method where as SessionBean interface doesn't have an unsetSessionContext() method. What is so special about the unsetEntityContext() method?
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe it's because session beans can unset the context during the ejbRemove() call. Entity beans think of remove in a different way, ie., they delete the underlying entity from the persistent store. Thereforethey potentially need a way just to unset the context without relying on a remove.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic