Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Software Craftsman this week in the Agile 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
Have you tried LearnNowOnline?
subject: HttpSession vs Stateful EJB