File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!