• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbActivate Method

 
Maneesh Chauahn
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
As iam unable to understand what is the use of ejbActivate method and how this method get called. I found on books that EJB Container called this method.. can anyone please let me know in real scenario when this method called. As i also found this method always empty and if this method is empty then what is use of this.

Can any one please help me how the finder method (defined in the home interface) work . The work flow of these methods. Will the finder method calls any Entity bean callback method
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ejActivate()

For Stateful Session Beans, container will call this method before serialization or an equivalent process.

For Entity Bean, This method is called by conatiner before bean returns to Bean Pool.

finder methods are implemented by container, you don't even mention in Bean class. You only need to mention it in Home Interface.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!