I didn't think this mesage was correct, so I took a look at the remove code. The cmr fields were broken.
A literal reading of the spec has the following delete order: 1. Remove entity from all relationships 2. Remove entity 3. Cascade the delete to all cascade-delete relationships So this leads to the following sql in one-to-one case update related entity fk to null remove entity remove related entity The code was broken so the set fk was after the remove entity, so if you are using a real fk it would break. Note: the code still does not support null foriegn keys, which is obvious in the above example. This will require a system to reorder deletes, without the application layer knowing. -dain ----- Original Message ----- From: "David Budworth" <[EMAIL PROTECTED]> To: "Jboss-Dev" <[EMAIL PROTECTED]> Sent: Saturday, November 10, 2001 11:25 AM Subject: Re: [JBoss-dev] ANN: Clustering support for Stateful Session Beans > Is it a requirement that EJB 2.0 CMP be complete? > > 1:1 CMR relations are broken right now (SQL executes out of order cause JDBC > exceptions), so you can't remove the master in a relation without first > removing the dependant. > > It appears to me, that this is a bitch to fix, but I'll save that for a > new post. > > Just need to know what my coffee grounds/water ratio should be for the rest > of the day. > > -David > > On Saturday 10 November 2001 07:25am, marc fleury wrote: > > OK > > > > it seems you guys finished your code in time for the alpha version. > > > > We will put an alpha as soon as possible, possibly this weekend, Scott is > > the man. > > > > It will include EJB 2.0 CMP, Clustering, microkernel SAR distribution, and > > various improvements over the 2.4 basis, > > > > the super-server, > > > > marcf > > > > |-----Original Message----- > > |From: [EMAIL PROTECTED] > > |[mailto:[EMAIL PROTECTED]]On Behalf Of Sacha > > |Labourey > > |Sent: Saturday, November 10, 2001 5:52 AM > > |To: Tomas Lapienis; Jboss-Dev > > |Subject: RE: [JBoss-dev] ANN: Clustering support for Stateful Session > > |Beans > > | > > | > > |Hello Tomas, > > | > > |> > - Cluster is automagically subdivided in sub-clusters (i.e. > > |> > sub-partitions), > > |> > which optimal size is user-definable. > > |> > > |> Great! Just a question: > > |> Will Entity Beans be clustered? > > | > > |They already are. Search the recent post on the ML for the clustering > > |keyword, posted by Bill Burke. > > | > > |In short, just put <clustered>True</clustered> in the EB definition in > > |jboss.xml (and launch the clustering services by dragging its xml file in > > |the deploy directory) > > | > > |> It might be clustered/failoverreclustered > > |> based on pk hash value (maybe)... > > |> When load balancing is done on SB then > > |> EB clustering for cache speed up would > > |> also be great... > > | > > |There is no distributed cache (yet?). Consequently, cache is > > |useless in this > > |case (which is the case with many (all?) app servers). > > | > > |We use pessimistic locking at the database level. Home invocations are > > |load-balanced whereas remote invocations for a bean are directed > > |to the same > > |node (until it fails). Consequently, load-balancing for entity beans is > > |performed at creation time (and, sure, at failover time). > > | > > |> P.S. Basically, it would be nice to have > > |> Entity Bean living in cluster somewhere... > > | > > |Then, it *is* nice. ;) > > | > > |Cheers, > > | > > | > > | Sacha > > | > > | > > |_______________________________________________ > > |Jboss-development mailing list > > |[EMAIL PROTECTED] > > |https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
