Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes What is the Difference between HttpSession and EJB SesssionBeans? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What is the Difference between HttpSession and EJB SesssionBeans?" Watch "What is the Difference between HttpSession and EJB SesssionBeans?" New topic
Author

What is the Difference between HttpSession and EJB SesssionBeans?

rajareddy dodda
Greenhorn

Joined: Jun 25, 2008
Posts: 15
Hello Friends,

i would like to know the difference between HttpSession and EJB SessionBeans. which one is used when? thanks in advance
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
rajareddy dodda
Greenhorn

Joined: Jun 25, 2008
Posts: 15
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the Difference between HttpSession and EJB SesssionBeans?
 
Similar Threads
Diff between HttpSession and Stateful Session bean
what is the difference between EJB 2.0 and EJB 2.1?
difference between Ejb Server & EJB Container?
Difference between HTTPSession & Cookies
Difference between ActionContext.getContext().getSession() and HttpSession