I do not believe that ejbPassivate is called prior to ejbRemove, or after it is called. I have not found anything in the spec that says ejbPassivate is called either, for any type of bean (Stateful, Statless, Entity, CMT, BMT, BMP, or CMP). I dont think it would make sense for the container to invoke ejbPassivate before or after ejbRemove either - certainly not after!! So I think the answer should be False (B).
Please feel free to correct me if I am wrong, as I am not an expert on EJB.
Write a BMP, like the following one, and test the remove method.
I actualy use this BMP in a BMP Tutorial to demonstrate how the various lifecylce methods work, but I don't think I called the ejbRemove method in the demo. Do it yourself, and prove the answer to yourself. Don't rely on someone else's opinion.
SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop