Hi,

when looking at the 2.0 Spec draft 1 the state diagram for Entity Beans
with container managed persistence shows that ejbRemove() causes the
Entity Bean to go back to the "pooled" state. ejbStore() on the other
hand can only be invoked in the "ready" state. This might cause your
changes to be ignored?

Christian

Reddy Krishnan wrote:
> 
> Hi,
> 
> Regarding the same cascade delete problem. I have a clearFields() method which 
>empties
> each of the collection holding relationships or dependent objects. If i call this 
>from
> the client the objects gets deleted properly.
> 
> But if i call this inside the ejbRemove() ( call clearFields() then call ejbStore()) 
>this
> is not deleted in the database!
> 
> Is it wrong to call such methods from ejbRemove?
> 
> Thanks
> Krishnan
> 
> -----Original Message-----
> From: Nick Newman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 27, 2000 9:13 AM
> To: Orion-Interest
> Subject: Re: Cascade Delete
> 
> Hi,
> 
> If you are using EJB 2.0 then (according to the draft specs) it is up to
> you to decide if dependent objects are deleted or not.
> 
> However, if you are using EJB 1.1 and are storing a Collection of things in
> an Entity bean, then IMHO the container MUST delete the dependent objects
> along with the entity.  I have reported this as bugzilla # 52. See that for
> further details.
> 
> Nick
> 
> At 04:53 PM 9/26/00 -0700, you wrote:
> >Hi,
> >
> >Having some problems while deleting a EJB. When i delete the ejb by
> >ejbobject.remove() method the dependent objects and relationship entries are
> >not
> >deleted from the database. Should this not be done automatically by the app
> >server.
> >
> >Is this a problem in Orion or is there some explicit delete that needs to be
> >done in the remove method implementation in the bean.
> >
> >Would appreciate any help on this.
> >
> >Thanks
> >Krishnan
begin:vcard 
n:Eichinger;Christian
tel;work:+43 662 22 88 422
x-mozilla-html:FALSE
url:www.salzburgresearch.at
org:Salzburg Research Forschungsgesellschaft m.b.H.;SunTREC
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Jakob-Haringer-Str. 5/III=0D=0A;Salzburg;;5020;Austria
fn:Christian Eichinger
end:vcard

Reply via email to