my dog learned polymorphism
The moose likes EJB and other Java EE Technologies and the fly likes httpsession objects and stateful session beans Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "httpsession objects and stateful session beans" Watch "httpsession objects and stateful session beans" New topic
Author

httpsession objects and stateful session beans

srinivas k
Greenhorn

Joined: Jan 31, 2003
Posts: 17
hi all,
what is the difference between the httpsession object and a stateful session bean , we can implement the same functionality what a stateful session bean provides then what is the need for a statefull session bean
thanks in advance :roll:
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
HttpSession is only available to web clients. If you want your Application to maintain session state, regardless of client-type, then Stateful Session Beans are the way to go.
Another thing that is typically overlooked is that additional level of transaction control provided by Stateful Session Beans implementing the SessionSynchronization interface.
That said, in general I tend to stay away from SFSBs. The majority of J2EE Applications only have a web client and HttpSession objects are easier to work with.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
srinivas k,
Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your public display name accordingly.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: httpsession objects and stateful session beans
 
Similar Threads
HttpSession vs Stateful Session Bean
State of Stateful Session Beans
Diff between HttpSession and Stateful Session bean
http session object,ejb session bean
Why use stateful bean.