Question: Which additional method(s) might the container call when invoking ejbRemove? A: ejbFind() B: ejbLoad() C: ejbStore() D: ejbActivate() E: ejbPassivate() Answer is: B,D My query is why C is not an answer? thanks. -Walk Rustin
Walker, the container calls ejbStore() when it wants to be in sync (bean vs. entity) but since you are deleting the entity and "zeroing out" the bean and putting it back into the pool, you don't care what the state of the bean is, thus you need to write it's state back to the entity. let's say you did call ejbStore() to update the state in the db ... then you would turn around and delete the same row from the db? wasted effort. Hope this helps. -van
SCJP 1.4<br />SCWCD<br />SCBCD
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...