> From: Jonathan Weedon [mailto:[EMAIL PROTECTED]]
> I fully agree that:
>
> 1) "it doesn't need the state of the bean", and
> 2) "this method should be a home method".
>
> However, you still need to verify the existence of the record in the
> database, and therefore ejbLoad cannot be a noop. It does not matter
> whether you use commit option B or C, you need to go to the database,
> in order to know whether to throw a NoSuchObjectException, as per the
> EJB 2.0 (and 1.1) specification.
Actually, no.
NoSuchObjectException should only be thrown if the call to the business
method cannot be completed. In that particular case, the call will succeed
because the business method doesn't need to load any state in order to
complete.
However, a call to a getter or a setter will result in NoSuchObjectException
being thrown, which is the expected behavior.
--
Cedric
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".