• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

HttpSession vs Session Beans

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when to use stateful session beans and when to use HttpSession.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those are completely unrelated terms.
 
rajareddy annavaarm
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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?
 
What's brown and sticky? ... a stick. Or a tiny ad.
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic