This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful session bean and callback methods  RSS feed

 
Anurag Narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)What exactly do we mean when we say that stateful session bean maintaines the session? Does it mean that,like in servlets a value can be found throughout the time I have opened the browser?What will happen if I instantiate a stateful session bean, set a value,goes to some other bean in the application,comeback to the same bean;insantiate it again;will I get the value I set up last time?

2)Can we explicitly call the callback methods(which are generally called by the server) like ejbRemove(),ejbLoad(),ejbStore()?

3)In a stateful session bean when does the server call the ejbRemove()method?
 
vikram veera
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

You can go to the below URL to find more info on EJBs.This will details you what is ejb and its lifecycle.

EJB information in developerparadise

Thanks
Vikram
www.developerparadise.com
 
Anurag Narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vikram.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!