• Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful session bean

 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a pure web based J2EE app(on application clients involved), since we can store the client states in the HttpSession object in the web tier, can I just forget using Stateful SessionBeans at EJB tier?
If not, under which circumstances I still have to use Stateful SessionBeans. I can see one usage is to use Stateful SessionBeans to perform some business logic which needs a few method calls and information stored between those calls.
Thanks in advance.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the purposes of storing client state, I would stick with the HttpSession. If you have an EJB that needs to maintain state between calls, then use a Stateful SessionBean.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might wanna check this post:
http://www.coderanch.com/t/311554/EJB-JEE/java/Stateful-Session-Beans
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!