aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes HttpSession vs Session Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "HttpSession vs Session Beans" Watch "HttpSession vs Session Beans" New topic
Author

HttpSession vs Session Beans

rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
when to use stateful session beans and when to use HttpSession.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Those are completely unrelated terms.


Rahul Bhattacharjee
LinkedIn - Blog
rajareddy annavaarm
Ranch Hand

Joined: Mar 15, 2007
Posts: 96
we are persiting data at server side using HttpSessions.Then why do we need to use stateful session beans.Because stateful session beans are also using to persist data on server side.

if i use persist the data of a specific client using Http Sessions,then what is the use of statefull session beans.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by rajareddy annavaarm:
we are persiting data at server side using HttpSessions.Then why do we need to use stateful session beans.Because stateful session beans are also using to persist data on server side.

if i use persist the data of a specific client using Http Sessions,then what is the use of statefull session beans.


We are not persisting data in server using HTTPSession.Its used my web application to keep track of user session and has a mechanism to store object in it.Its part of servlet api.

Stateful session bean generally represents process/operation but it can store client specific information untill the client removes it.It an EJB component and hence part of EJB api.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


if i use persist the data of a specific client using Http Sessions,then what is the use of statefull session beans.

How do you use an HttpSession when your client application is not an web application?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSession vs Session Beans