> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of J�rg Schorr
> Sent: Thursday, October 05, 2000 1:28 AM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] Strange bug with ejbRemove
>
>
> Hi,
>
> I have a strange bug using jboss with Oracle in the following situation:
>
> in our database we have a table with two references on itself (predecessor
> and successor).
> When, on the application level, a user deletes an entry, we clean-up the
> predecessors and successors links in order to be able to do a
> remove on the
> deleted entry (as we use delete on cascade on oracle) without removing
> another entry (which shouldn't be).
> The problem is the following: with jboss it deletes all entries as if the
> links are not updated correctly, and with the J2EE Reference
> Implementation
Ok it is not very clear. Are you using CMP or BMP?
if you are using CMP then the remove operation is remove by primaryKey so
that is fairly straightforward and should only remove the records associated
with that primary key.
If you are using BMP (what is the delete on cascade thing?) then you will
have to explain what JDBC you do, but basically jboss will call ejbRemove()
once on your instance and it is up to you to do the proper work in the
database.
Let us know
marc
> from Sun it works correctly.
> When we do not remove the entry, at the end of the operation the links are
> correctly set and I could also check that the ejbRemove is called
> only once
> and with the correct pk.
>
> Any idea?
>
> This issue is pretty urgent for us, although we have a work around.
>
> Thanks for any help
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]