• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

http session object,ejb session bean

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is difference b/w HttpSession object,Stateful Session bean in EJB to hold state info?Why is Stateful session bean adavantageous?
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually these days almost no one uses stateful sessions beans, most people use stateless session beans. So the HTTP session is really the best way to store temporary session in a J2EE application.

If you want a longer answer go on Google and look up stateful session beans... the reviews aren't very positive.
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it is almost incorrect that "Actually these days almost no one uses stateful sessions beans" , almost everywhere that people need to keep track of a session in an enterprise application they use statefull session beans.
indeed an stateful session bean fulfill many requirements that you may need in an enterprise application , like session persistence... :-) .

people use stateless session beans when they do not need to keep track of a session and they have similar response for every request that they need to process.


http sessions are very good when we have a web front end , but at least when we have a fat client we will use Session beans, application servers provide very good replication over session beans , so again you will use a session bean when you are going to use application servers extra features.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic