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 Activation and Passivation in beans 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 "Activation and Passivation in beans" Watch "Activation and Passivation in beans" New topic
Author

Activation and Passivation in beans

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 325
Does Activation and Passivation is applicable for only Stateful session bean and Entity bean or only for Stateful beans?
I have read below,
The mechanisms employed in passivation and activation change depending on the bean type. Stateful beans are usually evicted, while entity beans and stateless beans are pooled.


Does above statement true?

My second question is we have ejb life cycle methods such as ejbCreate and ejbRemove. Also by using annotation such as @PostActivate, @PrePassivate we declare life cycle methods. What is the difference of those methods?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Activation and Passivation in beans
 
Similar Threads
Instance pooling
When an EJBObject is created
EJB Passivation
Doubts in JavaBeat question
EJB3 and Domain-GUI binding