• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on ejbRemove()?

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In spec,
The container synchronizes the instance�s state before it invokes the ejbRemove method. This means that the persistent state of the instance at the beginning of the ejbRemove method is the same as it would be at the beginning of a business method (i.e., if the instance is not already synchronized from the state in the database, the container must invoke ejbLoad before it invokes ejbRemove).

Why does the ejbRemove() need synchronization? Why it will invoke ejbLoad, how about ejbStore? Any different if the ejbRemove involved in a transaction?
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Havalookat this one:
http://www.coderanch.com/t/159190/java-EJB-SCBCD/certification/ejbLoad-before-ejbRemove
You'll find some good fodder for thought.
--Dale--
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic