Image

Imagenose_army wrote in Imagejava_dev

EJB3: dependency injection & client inactivity timeout

Hi everybody,

I've got a question:

Stateful bean BeanA gets a reference to stateful bean BeanB with the use of dependency injection. BeanA is frequently used by client, while BeanB is rarely used by BeanA.
What happens when BeanB has client inactivity timeout? Is reference to BeanB going to become invalid and NoSuchEJBException will be thrown? Or probably container will not destroy BeanB while BeanA is alive?