Hi;

I am trying to understand the current implementation in our EjbBeanProxyHandler 
and BaseEJBBeans. 


If I understand correctly, 

1*) BaseEjbBeans hold map : proxy --> dependent EJB stateful instance
2*) When a call is made to remove method of the stateful instance and bean is 
dependent scope,  then remove "dependent EJB stateful instance" from 
BaseEJBBean 
"map" and do nothing
3*) When the bean is destroyed and if it is dependent, then call Remove method 
of the stateful instance over container. But if the stateful is removed from 
map 
via item-2, then no remove method invocation occurs. 


But spec. says that
1*) If the bean is dependent scope and remove method is called, "Call ejb 
remove 
method with EMPTY parameters" (this is only occured in our case with item-3 
i.e, 
but destruction of ejb instance is delayed to destroy phase, I think this is 
not 
correct. We have to call remove method of the EJB at the time call is made)
2*) When the bean is destroyed, if the bean is dependent and removed already 
via 
1, do nothing else "container internally removes the bean instance". (In our 
case, we do nothing on non-dependent scopes, I think this is not correct, we 
also have to call internal remove method of the container)

WDYT?

Gurkan

Reply via email to