Now, According to HFEJB, I can't rely on the most specific exception. In that case the answer should be 3. But what's the point of having ObjectNotFoundException if I don't get it surely? What do u pple think? regards, Sajid
posted 10 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.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads