wood burning stoves
The moose likes BEA/Weblogic and the fly likes How does 'cascade-delete'  in WLS 6.1 work ?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How does Watch "How does New topic

How does 'cascade-delete' in WLS 6.1 work ?!

Alagapan Thiagarajan

Joined: May 31, 2001
Posts: 9
Hi !
I am trying out the Customer and Account beans ( Entity CMP 2.0 with relationship ) and
i have inserted <cascade-delete/> on Account side of the relationship in ejb-jar.xml, where
customer and account have 1:* relationship. I tried out the example in WLS 6.1 with cloudscape
(as well as oracle) and the PROBLEM here is the Account db row does NOT get deleted when the
corresponding Ccustomer row is deleted. I have associated 3 Accounts with 1 Customer and i call
remove() on my customer, i find that ejbremove() DOES get called on all the corresponding
3 Account beans before ejbremove() gets called on the customer itself, and i dont get any exception
here. But the PROBLEM is, despite ejbremove() getting called on Account bean, the DB rows which
represent the Account do NOT get deleted. Can anyone help me out plz ? Thanx in advance.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Sounds like a WebLogic issue so lets put it in the WebLogic forum.

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: How does 'cascade-delete' in WLS 6.1 work ?!
It's not a secret anymore!