Cedric Beust wrote:
>
> > From: Jonathan Weedon [mailto:[EMAIL PROTECTED]]
>
> > That's broken. I can't show you how it violates the EJB spec
>
> ... which should be an indication that it doesn't :-)
No, it just means Jonathan didn't look hard enough. I found it though.
Last sentence in section 9.5.3.
"After an entity object has been removed, subsequent attempts to access the
entity object by a remote client result in the java.rmi.NoSuchObjectException."
Also check Figure 19 "Client View of Entity Object Life Cycle". It is
also quite clear there.
Also the last sentence in section 9.7.1.
"All references to an entity object that does not exist are invalid. All
attempted invocations on an entity object that does not exist result in
an java.rmi.NoSuchObjectException being thrown."
Also in 10.3.4.1 (second bullet point)
I think that exhausts the requirements. It is 100% clear. The behaviour
that was described of avoiding any checks in ejbLoad is non-compliant
with the spec. It may be useful however as a performance optimization
as long as it doesn't affect the customer's application, which I expect
will often be the case.
> Your business method will execute fine, it will return a key that might not
> exist at this point in time in the database, but it would violate the
> specification to throw NoSuchObjectException at this moment.
>
> Therefore, we don't.
>
> A typical example where such behavior is desirable is this: the process
> that deleted the row in the database intends to replace it with another one
> with a similar key. You don't want your client to fail at this point
> because even though the object fugitively disappears from the database, your
> application is still operational.
>
> --
> 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".
--
________________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
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".