• 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

What is the Difference between HttpSession and EJB SesssionBeans?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,

i would like to know the difference between HttpSession and EJB SessionBeans. which one is used when? thanks in advance
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rajareddy,
Welcome to JavaRanch!

They are in different layers of the application. A HttpSession is used in the front end/web layer of an application to keep track of data specific to a user. An EJB Session bean is used in the back end/EJB layer. There are two types of session beans. A stateful session bean can also keep track of data specific to a user. A stateless session bean cannot keep track of state.
 
rajareddy dodda
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your fast replay, but still i have one doubt .can we maintain one session objct to the complete application that application has both weblayer and Ejb layer?
reply
    Bookmark Topic Watch Topic
  • New Topic