When using Stateful Session Beans, What will happen if an EJB client program terminates without calling the Stateful Sesson Bean's remove() method?
manish sethi Referring to page 57 of the EJB 1.1 specification. A stateful session bean would come into Doesn't Exist state if one of the following happens:
- Call remove() on the EJBObjects's stub from the Client
- Call remove(handleToEJBObject) on EJBHome's stub from client.
- System Exception in bean
- Bean timeout
- Container crash
As in your question you have ruled out the possibility of 1, 2, and 3 so bean will be in Exists state until one of 4 or 5 happens. Most likely 4.