Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful session Beans  RSS feed

 
Ravi Singh
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a stateful session bean has its state re-activated from secondary storage it has its ejbActivate() method invoked.

Is it necessary to perform the actions that were performed in setSessionContext() and ejbCreate(), which are called when the bean is created, in the ejbActivate() method?
 
Sathya Sekar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my knowledge, not unless you have some resources like DB connections or sockets to initialize.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!