This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EntityBean instance's life Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EntityBean instance Watch "EntityBean instance New topic

EntityBean instance's life

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344


When we call remove() on an Entity Bean, the real entity in the database gets deleted or removed and the Entity Bean that represented this row in the database goes to the bean pool. So does this mean that the state of this particular bean instance gets initialized or reset and then sent to the pool?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Kalyan Anand
Ranch Hand

Joined: Feb 07, 2007
Posts: 194
Yes. An object in the pool doesn't represent any entity in the database.
I agree. Here's the link:
subject: EntityBean instance's life
Similar Threads
entity bean pool
question #8 p293
4 questions about stateful session bean,...
Entity Bean Updates
Couple of questions