Rickard,

Sections 10.5.2, 10.5.3 of the EJB 2.0 specification state that
the Container calls an 'ejbRemove' (in response to a 'remove on
the home/component interface) on an instance in the ready-state.
It is not enough for the instance to be associated with only
the pk - it should also be associated with state. That is, the
state of the persisted fields should be synchronized with those
in the database (via an ejbLoad if using commit option B or C)
before the Container invokes the ejbRemove.

I should mention at this point that I am not a J2EE implementor
(read R&D ;) though the company I works for does and I might be
off on this.

-krish


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard
> Sent: Tuesday, January 22, 2002 3:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: remove() on EJBHome
>
>
> John Harby wrote:
>
> > Maybe on pg. 553?,
> >
> > "Corrected inconsistency in specification of error behavior for
> > javax.ejb.Home.remove(Object primaryKey)
> > when called on session bean: javax.ejb.RemoveException should be thrown."
>
>
> Sorry, I should have said that my case is for EntityBeans only.
>
>
> I understand that the *logical* thing to do would be to run ejbRemove()
> on an instance that is associated with the pk, but now I'm running tests
> on my container that shows that this is not done. Knowing if this is in
> the spec is important, because it tells us whether the CTS for EJB2.0
> should include a test of this. It seems not.
>
> /Rickard
>
> --
> Rickard Öberg
> Author of "Mastering RMI"
> Chief Architect, TheServerSide.com
>    The Middleware Company - We Build Experts!
>
> ===========================================================================
> 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".
>
>

===========================================================================
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".

Reply via email to