This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

HttpSession vs Session Beans

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Those are completely unrelated terms.
 
rajareddy annavaarm
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!