File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes HttpSession vs Stateful EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "HttpSession vs Stateful EJB" Watch "HttpSession vs Stateful EJB" New topic

HttpSession vs Stateful EJB

Peter Lee

Joined: Jun 25, 2003
Posts: 24
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.
Peter Lee

Joined: Jun 25, 2003
Posts: 24
Sorry, missing one word, I mean most samples use stateful EJB to implement shopping cart rather than HttpSession.
Xie Ruchang
Ranch Hand

Joined: Dec 25, 2003
Posts: 160
Read this article on HTPP session object vs SFSB.
Best Regards
Don't get me started about those stupid light bulbs.
subject: HttpSession vs Stateful EJB
It's not a secret anymore!