Forums Register Login

Question on ejbRemove()?

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Havalookat this one:
https://coderanch.com/t/159190/java-EJB-SCBCD/certification/ejbLoad-before-ejbRemove
You'll find some good fodder for thought.
--Dale--
Remember to always leap before you look. But always take the time to smell the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 549 times.
Similar Threads
ques on ejbRemove()
pg 323 "Sharpen your pencil"
Kathy , a doubt from ur book
ejbRemove () while passivated
Mock Question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:31:34.