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:

  1. Call remove() on the EJBObjects's stub from the Client
  2. Call remove(handleToEJBObject) on EJBHome's stub from client.
  3. System Exception in bean
  4. Bean timeout
  5. 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.