This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Life Cycle

 
Rajeev Iyer
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
Which is the first method in the life cycle of stateless session bean?
some say it is the create while some others say it is ejbActivate.
Pls help..
Regards
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class.newInstance() is the first method call on any EJB. Followed by setSessionContext() for Session Beans and then ejbCreate(). This will put the bean in the method-ready state. You can't possibly activate a bean that doesn't exist.
Besides, ejbActivate() is never called on stateless session beans because they are never passivated. That is what makes them stateless.
 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!