my dog learned polymorphism*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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: 327
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