posted 18 years ago
If the question is about "no object with pk 23 exists" - I think container would get ons instance ready to act as "object with pk 23" as per diagram on page 348 of HFEJB (by pulling one instance out of pool, calling ejbActivate, doing select from DB, then populating EB and then calling ejbLoad).
Only in the scenario when "no entity with pk 23 exists - in the underlying persistent store" the container should throw ObjectNotFoundException. And the specification says that the container *should* throw ObjectNotFoundException, means this more specific exception is recommended, but not mandated.