aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "HttpSession vs Stateful EJB" Watch "HttpSession vs Stateful EJB" New topic
Author

HttpSession vs Stateful EJB

Peter Lee
Greenhorn

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.
Thanks.
Peter
Peter Lee
Greenhorn

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
Peter
Read this article on HTPP session object vs SFSB.
Best Regards
Frankie
 
 
subject: HttpSession vs Stateful EJB