Meaningless Drivel is fun!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
I agree. Here's the link:
subject: HttpSession vs Stateful EJB
Similar Threads
Retrieving Stateful Session Bean
HttpSession vs Session Beans
http session object,ejb session bean
Session management and login