Read page 213 from Head First
EJB.
I am 100% sure it won't call ejbActivate to remove bean if it is in passivation. It will only call ejbActivate if client come back in reasonable time when bean was last passviated.
Container has better things to do compare to call ejbActivate just to remove it. So you better put your clean up code in both ejbPassivate & ejbRemove method.
Hope this will make my point clear.
SCJP1.4
SCWCD
[ January 19, 2004: Message edited by: Nehul Nalekar ]
SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1