This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB Lifecycle Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Lifecycle Question" Watch "EJB Lifecycle Question" New topic

EJB Lifecycle Question

Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi there,
If I have a large number of CMP 2.x entity beans that:
a. Have various CMR relationships established between them.
b. Have various cascade delete relationships established between them.
does the ejbRemove () method get called on every entity bean involved in the cascade delete even though they are not currently loaded in the container?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
As I understand the spec, yes.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: EJB Lifecycle Question
Similar Threads
Hibernate and database physical design
ejb 2.0 entity beans enhancements in jboss 4.0
how cascade delete works?
Question about design
hibernate delete performance