• 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--
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!