This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes ejbRemove on Session and Entity Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "ejbRemove on Session and Entity" Watch "ejbRemove on Session and Entity" New topic
Author

ejbRemove on Session and Entity

notabhinav notchopra
Greenhorn

Joined: Dec 17, 2006
Posts: 1
EJB spec 2.0 on page 79 says "If a client invokes a session object whose session bean instance has been passivated, the container will activate the instance. To activate the session bean instance, the container restores the instance�s state from secondary storage and issues ejbActivate on it."

1. What happens when client calls remove on a passivated session bean? Does the container activates the bean and then calls ejbRemove on it or it just removes the bean without activating it and calling ejbRemove?

2. Also, is it true as mentioned in HEAD First EJB that when client calls remove on passivated entity beans, they are first activated and then ejbRemove is called.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejbRemove on Session and Entity
 
Similar Threads
Some questions
Pls help me udnerstand ejbRemove and ejbPassivate
4 questions about stateful session bean,...
Page 282 Head First EJB
remove() method in stateful session bean