File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSession vs Stateful EJB

 
Peter Lee
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
What is the advantages for using stateful EJB to store session state over HttpSession? According to Petstore example or most other samples, most use stateful EJB to implement rather that HttpSession. However, the session is created intially, and if use stateful EJB, it needs extra effort to create or manage the life cycle.
Thanks.
Peter
 
Peter Lee
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, missing one word, I mean most samples use stateful EJB to implement shopping cart rather than HttpSession.
 
Xie Ruchang
Ranch Hand
Posts: 160
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter
Read this article on HTPP session object vs SFSB.
Best Regards
Frankie
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic