This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Activation and Passivation in beans

 
Harshana Dias
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic